pub struct FileStateStore { /* private fields */ }Available on crate feature
std only.Expand description
Local filesystem implementation of StateStore backed by KernelSnapshot::save_to.
Implementations§
Trait Implementations§
Source§impl Clone for FileStateStore
impl Clone for FileStateStore
Source§impl Debug for FileStateStore
impl Debug for FileStateStore
Source§impl StateStore for FileStateStore
impl StateStore for FileStateStore
Source§fn load_snapshot(&self) -> Result<Option<KernelSnapshot>>
fn load_snapshot(&self) -> Result<Option<KernelSnapshot>>
Load the latest persisted snapshot, or
Ok(None) if no state exists yet.Source§fn save_snapshot(&self, snapshot: &KernelSnapshot) -> Result<()>
fn save_snapshot(&self, snapshot: &KernelSnapshot) -> Result<()>
Persist a snapshot atomically to the backing store.
Auto Trait Implementations§
impl Forget for FileStateStore
impl Freeze for FileStateStore
impl Move for FileStateStore
impl RefUnwindSafe for FileStateStore
impl Send for FileStateStorewhere
RawVecInner: Send,
impl Sync for FileStateStorewhere
RawVecInner: Sync,
impl Unpin for FileStateStore
impl UnsafeUnpin for FileStateStore
impl UnwindSafe for FileStateStorewhere
RawVecInner: UnwindSafe,
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