pub enum SandboxBackend {
Bwrap,
Firejail,
}Expand description
Which OS facility provides the sandbox.
Variants§
Bwrap
bubblewrap — unprivileged user-namespace sandbox (preferred).
Firejail
firejail — setuid sandbox with a read-only host root.
Implementations§
Source§impl SandboxBackend
impl SandboxBackend
Sourcepub fn parse(value: &str) -> Option<Self>
pub fn parse(value: &str) -> Option<Self>
Parse a configuration value naming a specific backend.
auto and off select a policy, not a backend, so the caller
handles them via Self::is_auto / Self::is_off and this returns
None for both.
Trait Implementations§
Source§impl Clone for SandboxBackend
impl Clone for SandboxBackend
impl Copy for SandboxBackend
Source§impl Debug for SandboxBackend
impl Debug for SandboxBackend
Source§impl Display for SandboxBackend
impl Display for SandboxBackend
impl Eq for SandboxBackend
Source§impl PartialEq for SandboxBackend
impl PartialEq for SandboxBackend
impl StructuralPartialEq for SandboxBackend
Auto Trait Implementations§
impl Forget for SandboxBackend
impl Freeze for SandboxBackend
impl RefUnwindSafe for SandboxBackend
impl Send for SandboxBackend
impl Sync for SandboxBackend
impl Unpin for SandboxBackend
impl UnsafeUnpin for SandboxBackend
impl UnwindSafe for SandboxBackend
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.