Enum nakamoto_p2p::fsm::event::Event
source · pub enum Event {
Initializing,
Ready {
height: Height,
filter_height: Height,
time: LocalTime,
},
Received(PeerId, NetworkMessage),
Address(AddressEvent),
Chain(ChainEvent),
Peer(PeerEvent),
Filter(FilterEvent),
Inventory(InventoryEvent),
Ping(PingEvent),
}
Expand description
A peer-to-peer event.
Variants
Initializing
The node is initializing its state machine and about to start network activity.
Ready
Fields
height: Height
Block header height.
filter_height: Height
Filter header height.
time: LocalTime
Local time.
The node is initialized and ready to receive commands.
Received(PeerId, NetworkMessage)
Received a message from a peer.
Address(AddressEvent)
An address manager event.
Chain(ChainEvent)
A sync manager event.
Peer(PeerEvent)
A peer manager event.
Filter(FilterEvent)
A CBF manager event.
Inventory(InventoryEvent)
An inventory manager event.
Ping(PingEvent)
A ping manager event.
Trait Implementations
sourceimpl From<Event> for Event
impl From<Event> for Event
sourcefn from(e: ChainEvent) -> Self
fn from(e: ChainEvent) -> Self
Converts to this type from the input type.
sourceimpl From<Event> for Event
impl From<Event> for Event
sourcefn from(e: FilterEvent) -> Self
fn from(e: FilterEvent) -> Self
Converts to this type from the input type.
sourceimpl From<Event> for Event
impl From<Event> for Event
sourcefn from(e: AddressEvent) -> Self
fn from(e: AddressEvent) -> Self
Converts to this type from the input type.
sourceimpl From<Event> for Event
impl From<Event> for Event
sourcefn from(e: InventoryEvent) -> Self
fn from(e: InventoryEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl !UnwindSafe for Event
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more