Struct ckb_sync::Synchronizer [−][src]
pub struct Synchronizer { pub shared: Arc<SyncShared>, // some fields omitted }
Expand description
Sync protocol handle
Fields
Sync shared state
Implementations
Init sync protocol handle
This is a runtime sync protocol shared state, and any relay messages will be processed and forwarded by it
Get shared state
Process a new block sync from other peer
Get blocks to fetch
Regularly check and eject some nodes that do not respond in time
Trait Implementations
Init action on service run
Called when the corresponding protocol message is received
Called when opening protocol
Called when closing protocol
Called when the Service receives the notify task
Auto Trait Implementations
impl !RefUnwindSafe for Synchronizer
impl Send for Synchronizer
impl Sync for Synchronizer
impl Unpin for Synchronizer
impl !UnwindSafe for Synchronizer
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V