Struct ashpd::flatpak::SpawnOptions
source · pub struct SpawnOptions { /* private fields */ }
Expand description
Specified options for a Flatpak::spawn
request.
Implementations§
source§impl SpawnOptions
impl SpawnOptions
sourcepub fn sandbox_expose<P: IntoIterator<Item = I>, I: AsRef<str> + Type + Serialize>(
self,
sandbox_expose: impl Into<Option<P>>,
) -> Self
pub fn sandbox_expose<P: IntoIterator<Item = I>, I: AsRef<str> + Type + Serialize>( self, sandbox_expose: impl Into<Option<P>>, ) -> Self
Sets the list of filenames for files to expose the new sandbox. Note absolute paths or subdirectories are not allowed.
sourcepub fn sandbox_expose_ro<P: IntoIterator<Item = I>, I: AsRef<str> + Type + Serialize>(
self,
sandbox_expose_ro: impl Into<Option<P>>,
) -> Self
pub fn sandbox_expose_ro<P: IntoIterator<Item = I>, I: AsRef<str> + Type + Serialize>( self, sandbox_expose_ro: impl Into<Option<P>>, ) -> Self
Sets the list of filenames for files to expose the new sandbox, read-only. Note absolute paths or subdirectories are not allowed.
sourcepub fn sandbox_expose_fd<P: IntoIterator<Item = OwnedFd>>(
self,
sandbox_expose_fd: impl Into<Option<P>>,
) -> Self
pub fn sandbox_expose_fd<P: IntoIterator<Item = OwnedFd>>( self, sandbox_expose_fd: impl Into<Option<P>>, ) -> Self
Sets the list of file descriptors of files to expose the new sandbox.
sourcepub fn sandbox_expose_fd_ro<P: IntoIterator<Item = OwnedFd>>(
self,
sandbox_expose_fd_ro: impl Into<Option<P>>,
) -> Self
pub fn sandbox_expose_fd_ro<P: IntoIterator<Item = OwnedFd>>( self, sandbox_expose_fd_ro: impl Into<Option<P>>, ) -> Self
Sets the list of file descriptors of files to expose the new sandbox, read-only.
sourcepub fn sandbox_flags(
self,
sandbox_flags: impl Into<Option<BitFlags<SandboxFlags>>>,
) -> Self
pub fn sandbox_flags( self, sandbox_flags: impl Into<Option<BitFlags<SandboxFlags>>>, ) -> Self
Sets the created sandbox flags.
sourcepub fn unset_env<P: IntoIterator<Item = I>, I: AsRef<str> + Type + Serialize>(
self,
env: impl Into<Option<P>>,
) -> Self
pub fn unset_env<P: IntoIterator<Item = I>, I: AsRef<str> + Type + Serialize>( self, env: impl Into<Option<P>>, ) -> Self
Env variables to unset.
Trait Implementations§
source§impl Debug for SpawnOptions
impl Debug for SpawnOptions
source§impl Default for SpawnOptions
impl Default for SpawnOptions
source§fn default() -> SpawnOptions
fn default() -> SpawnOptions
Returns the “default value” for a type. Read more
source§impl Serialize for SpawnOptions
impl Serialize for SpawnOptions
Auto Trait Implementations§
impl Freeze for SpawnOptions
impl RefUnwindSafe for SpawnOptions
impl Send for SpawnOptions
impl Sync for SpawnOptions
impl Unpin for SpawnOptions
impl UnwindSafe for SpawnOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> DynamicType for T
impl<T> DynamicType for T
source§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.