pub struct ContainerManager { /* private fields */ }
Expand description
Container Manager handle.
Container Manager by design is a singleton, so every handle should point to the same data.
Implementations§
source§impl ContainerManager
impl ContainerManager
pub fn new( containers_state: ContainerState, storage_manager: StorageManager ) -> Self
pub fn mount(&self, container: &Container) -> Result<(), ContainerManagerError>
pub fn unmount( &self, container: &Container ) -> Result<(), ContainerManagerError>
pub fn is_mounted(&self, container: &Container) -> bool
Trait Implementations§
source§impl Clone for ContainerManager
impl Clone for ContainerManager
source§fn clone(&self) -> ContainerManager
fn clone(&self) -> ContainerManager
Returns a copy 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 moreAuto Trait Implementations§
impl !RefUnwindSafe for ContainerManager
impl Send for ContainerManager
impl Sync for ContainerManager
impl Unpin for ContainerManager
impl !UnwindSafe for ContainerManager
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