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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.