pub enum RuntimeEvent {
PeerDiscovered(NodeId),
ProposalReceived(ProposalId),
VoteReceived(ProposalId),
DecisionUpdated {
proposal_id: ProposalId,
decision: Decision,
},
}Expand description
Side effects emitted by Runtime::apply.
Events are intended for UI/logging/telemetry or for driving higher-layer reactions.
Variants§
PeerDiscovered(NodeId)
A new peer became known.
ProposalReceived(ProposalId)
A proposal was observed.
VoteReceived(ProposalId)
A vote was observed.
DecisionUpdated
The derived decision for a proposal changed.
Trait Implementations§
Source§impl Clone for RuntimeEvent
impl Clone for RuntimeEvent
Source§fn clone(&self) -> RuntimeEvent
fn clone(&self) -> RuntimeEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RuntimeEvent
impl RefUnwindSafe for RuntimeEvent
impl Send for RuntimeEvent
impl Sync for RuntimeEvent
impl Unpin for RuntimeEvent
impl UnsafeUnpin for RuntimeEvent
impl UnwindSafe for RuntimeEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more