pub trait Checkpointer: Processor {
    // Required method
    fn checkpoint(
        &self,
        f: &mut dyn FnMut(&mut dyn LockedCheckpointer) -> Result<(), MetricsError>
    ) -> Result<(), MetricsError>;
}
Available on crate feature metrics only.
Expand description

The interface used to create checkpoints.

Required Methods§

source

fn checkpoint( &self, f: &mut dyn FnMut(&mut dyn LockedCheckpointer) -> Result<(), MetricsError> ) -> Result<(), MetricsError>

Synchronizes the checkpoint process and allows a single locked checkpoint to be accessed at a time.

Implementors§