pub enum Backend {
None,
Bwrap,
Docker,
}Expand description
How commands are confined.
Variants§
None
Run directly, as you, with your credentials. The historical behaviour, and the only sane default for a supervised CLI on a machine where the alternatives may not be installed.
Bwrap
User namespaces via bwrap. Cheap — no daemon, a few milliseconds —
and the right choice where unprivileged user namespaces are permitted.
Docker
A throwaway container. Works where user namespaces are locked down, costs a container start per command.
Implementations§
Trait Implementations§
impl Copy for Backend
Source§impl<'de> Deserialize<'de> for Backend
impl<'de> Deserialize<'de> for Backend
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Backend
impl StructuralPartialEq for Backend
Auto Trait Implementations§
impl Freeze for Backend
impl RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnsafeUnpin for Backend
impl UnwindSafe for Backend
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