Struct cnf_lib::environment::distrobox::Distrobox
source · pub struct Distrobox { /* private fields */ }Implementations§
source§impl Distrobox
impl Distrobox
sourcepub fn new(name: Option<String>) -> Result<Self, NewDistroboxError>
pub fn new(name: Option<String>) -> Result<Self, NewDistroboxError>
Start a Distrobox container with a given name.
Checks if the distrobox container exists and starts it, if necessary. If None is given as
name, will fall back to the default distrobox name and start that instead. Returns an error
if unsuccessful.
sourcepub fn current() -> Result<Self, CurrentDistroboxError>
pub fn current() -> Result<Self, CurrentDistroboxError>
Get the Toolbx container currently executing CNF.
Will return an error if the current execution environment isn’t Toolbx.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Distrobox
impl<'de> Deserialize<'de> for Distrobox
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
source§impl From<Distrobox> for Environment
impl From<Distrobox> for Environment
source§impl IsEnvironment for Distrobox
impl IsEnvironment for Distrobox
source§impl Ord for Distrobox
impl Ord for Distrobox
source§impl PartialEq<Distrobox> for Distrobox
impl PartialEq<Distrobox> for Distrobox
source§impl PartialOrd<Distrobox> for Distrobox
impl PartialOrd<Distrobox> for Distrobox
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for Distrobox
impl StructuralEq for Distrobox
impl StructuralPartialEq for Distrobox
Auto Trait Implementations§
impl RefUnwindSafe for Distrobox
impl Send for Distrobox
impl Sync for Distrobox
impl Unpin for Distrobox
impl UnwindSafe for Distrobox
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