pub struct StateStore { /* private fields */ }Expand description
Container state store.
Manages container state persistence in a directory.
Implementations§
Source§impl StateStore
impl StateStore
Sourcepub fn save(&self, state: &ContainerState) -> Result<()>
pub fn save(&self, state: &ContainerState) -> Result<()>
Save container state.
Sourcepub fn load(&self, id: &str) -> Result<ContainerState>
pub fn load(&self, id: &str) -> Result<ContainerState>
Load container state.
Sourcepub fn list_states(&self) -> Result<Vec<ContainerState>>
pub fn list_states(&self) -> Result<Vec<ContainerState>>
List all containers with their states.
Auto Trait Implementations§
impl Freeze for StateStore
impl RefUnwindSafe for StateStore
impl Send for StateStore
impl Sync for StateStore
impl Unpin for StateStore
impl UnsafeUnpin for StateStore
impl UnwindSafe for StateStore
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