pub struct CheckpointManager<T> { /* private fields */ }Expand description
Manager for checkpoints during execution
Implementations§
Source§impl<T: Clone> CheckpointManager<T>
impl<T: Clone> CheckpointManager<T>
pub fn new(max_checkpoints: usize) -> Self
pub fn create_checkpoint( &mut self, operation_index: usize, partial_results: Vec<T>, ) -> usize
pub fn restore_checkpoint(&self, checkpoint_id: usize) -> Option<&Checkpoint<T>>
pub fn latest_checkpoint(&self) -> Option<&Checkpoint<T>>
pub fn num_checkpoints(&self) -> usize
pub fn clear(&mut self)
Auto Trait Implementations§
impl<T> Freeze for CheckpointManager<T>
impl<T> RefUnwindSafe for CheckpointManager<T>where
T: RefUnwindSafe,
impl<T> Send for CheckpointManager<T>where
T: Send,
impl<T> Sync for CheckpointManager<T>where
T: Sync,
impl<T> Unpin for CheckpointManager<T>where
T: Unpin,
impl<T> UnwindSafe for CheckpointManager<T>where
T: 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