Trait cfxcore::sync::SynchronizationPhaseTrait
source · pub trait SynchronizationPhaseTrait: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn phase_type(&self) -> SyncPhaseType;
fn next(
&self,
_io: &dyn NetworkContext,
_sync_handler: &SynchronizationProtocolHandler
) -> SyncPhaseType;
fn start(
&self,
_io: &dyn NetworkContext,
_sync_handler: &SynchronizationProtocolHandler
);
}