pub struct SnapshotStore { /* private fields */ }Implementations§
Source§impl SnapshotStore
impl SnapshotStore
pub fn new<P: AsRef<Path>>(root_dir: P) -> Result<Self>
pub fn save( &self, snapshot: &PackedSnapshot, metadata: &SnapshotMetadata, writer: &SnapshotWriter, ) -> Result<PathBuf>
pub fn load( &self, id: &str, reader: &SnapshotReader, ) -> Result<(PackedSnapshot, SnapshotMetadata)>
pub fn delete(&self, id: &str) -> Result<()>
pub fn list(&self) -> Result<Vec<String>>
Auto Trait Implementations§
impl Freeze for SnapshotStore
impl RefUnwindSafe for SnapshotStore
impl Send for SnapshotStore
impl Sync for SnapshotStore
impl Unpin for SnapshotStore
impl UnwindSafe for SnapshotStore
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