Trait CommonSynchronizer
Source pub trait CommonSynchronizer: Send + Sync {
// Required methods
fn set_checkpoint(&mut self, checkpoint: Option<CheckpointType>);
fn set_last_synced_block(&mut self, last_synced_block: Option<BlockHeader>);
fn sync_block<'life0, 'async_trait>(
&'life0 mut self,
block_id: BlockId,
) -> Pin<Box<dyn Future<Output = SynchronizerResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn sync_blocks<'life0, 'async_trait>(
&'life0 mut self,
initial_block_id: BlockId,
final_block_id: BlockId,
) -> Pin<Box<dyn Future<Output = SynchronizerResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}