pub enum InboundEvent {
Message(String, Message),
InboundConnFailed(String),
}Expand description
One inbound event the orchestrator processes. Either a decoded election message from a peer, or a “the connection from $peer went down” notification (so the orchestrator can clear any state that assumed the link was up).
Variants§
Message(String, Message)
(from_node_id, msg).
InboundConnFailed(String)
The accept thread saw a new inbound connection but the
handshake / first-frame read failed. String is the peer
addr for diagnostics.
Auto Trait Implementations§
impl Freeze for InboundEvent
impl RefUnwindSafe for InboundEvent
impl Send for InboundEvent
impl Sync for InboundEvent
impl Unpin for InboundEvent
impl UnsafeUnpin for InboundEvent
impl UnwindSafe for InboundEvent
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