pub struct CheckpointManager { /* private fields */ }Implementations§
Source§impl CheckpointManager
impl CheckpointManager
pub fn new<P: AsRef<Path>>(root_dir: P) -> Result<Self>
pub fn with_writer(self, writer: SnapshotWriter) -> Self
pub fn with_reader(self, reader: SnapshotReader) -> Self
pub fn create_checkpoint( &mut self, id: String, snapshot: PackedSnapshot, ) -> Result<()>
pub fn load_checkpoint(&mut self, id: &str) -> Result<Checkpoint>
pub fn delete_checkpoint(&mut self, id: &str) -> Result<()>
pub fn list_checkpoints(&self) -> Result<Vec<String>>
pub fn get_checkpoint_chain(&self) -> &[String]
pub fn get_latest_checkpoint(&self) -> Option<&str>
pub fn prune_old_checkpoints(&mut self, keep_count: usize) -> Result<()>
pub fn clear_all_checkpoints(&mut self) -> Result<()>
Auto Trait Implementations§
impl Freeze for CheckpointManager
impl RefUnwindSafe for CheckpointManager
impl Send for CheckpointManager
impl Sync for CheckpointManager
impl Unpin for CheckpointManager
impl UnwindSafe for CheckpointManager
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