#[repr(i32)]pub enum SandboxSelector {
Auto = 0,
Bwrap = 1,
FlatpakSpawn = 2,
NotSandboxed = 3,
}Expand description
Method by which the SandboxMechanism is selected
Variants§
Auto = 0
This mode selects bwrap outside of Flatpaks and usually
flatpak-spawn inside of Flatpaks. The sandbox is disabled
automatically inside of Flatpak development environments. See
details below.
Inside of Flatpaks, flatpak-spawn is used to create the sandbox. This
mechanism starts an installed Flatpak with the same app id. For
development, Flatpak are usually not installed and the sandbox can
therefore not be used. If the sandbox has been started via
flatpak-builder --run (i.e. without installed Flatpak) and the app id
ends with Devel, the sandbox is disabled.
Bwrap = 1
FlatpakSpawn = 2
NotSandboxed = 3
Implementations§
Source§impl SandboxSelector
impl SandboxSelector
pub async fn determine_sandbox_mechanism(self) -> SandboxMechanism
Trait Implementations§
Source§impl Clone for SandboxSelector
impl Clone for SandboxSelector
Source§fn clone(&self) -> SandboxSelector
fn clone(&self) -> SandboxSelector
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SandboxSelector
impl Debug for SandboxSelector
Source§impl Default for SandboxSelector
impl Default for SandboxSelector
Source§fn default() -> SandboxSelector
fn default() -> SandboxSelector
Returns the “default value” for a type. Read more
impl Copy for SandboxSelector
Auto Trait Implementations§
impl Freeze for SandboxSelector
impl RefUnwindSafe for SandboxSelector
impl Send for SandboxSelector
impl Sync for SandboxSelector
impl Unpin for SandboxSelector
impl UnsafeUnpin for SandboxSelector
impl UnwindSafe for SandboxSelector
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more