Struct exocore_chain::engine::SyncContext [−][src]
pub struct SyncContext { pub events: Vec<Event>, pub messages: Vec<SyncContextMessage>, pub sync_state: SyncState, }
Expand description
Synchronization context used by chain_sync
, pending_sync
and
commit_manager
to dispatch messages to other nodes, and dispatch events to
be sent to engine handles.
Fields
events: Vec<Event>
messages: Vec<SyncContextMessage>
sync_state: SyncState
Implementations
pub fn push_pending_sync_request(
&mut self,
node_id: NodeId,
request_builder: CapnpFrameBuilder<Owned>
)
pub fn push_chain_sync_request(
&mut self,
node_id: NodeId,
request_builder: CapnpFrameBuilder<Owned>
)
pub fn push_chain_sync_response(
&mut self,
node_id: NodeId,
response_builder: CapnpFrameBuilder<Owned>
)
Auto Trait Implementations
impl !RefUnwindSafe for SyncContext
impl Send for SyncContext
impl !Sync for SyncContext
impl Unpin for SyncContext
impl UnwindSafe for SyncContext
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self