pub trait CheckpointCallback:
Debug
+ Send
+ Sync {
// Required method
fn checkpoint<'life0, 'life1, 'async_trait>(
&'life0 self,
completed_nodes: &'life1 [usize],
) -> Pin<Box<dyn Future<Output = Result<(), NetworkError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
A trait invoked periodically to record checkpoint data. This can write partial progress to disk, a DB, etc.