[][src]Enum nakamoto_node::node::Event

pub enum Event<M> {
    Listening(SocketAddr),
    Connecting,
    Syncing,
    Synced,
    Connected(SocketAddrLink),
    Disconnected(SocketAddr),
    Received(SocketAddr, M),
    HeadersImported(ImportResult),
}

Variants

Listening(SocketAddr)

The node is now listening for incoming connections.

Connecting

The node is connecting to the network and isn't ready to start syncing.

Syncing

The node started syncing with the network.

Synced

The node has finished syncing and is ready to accept connections and process commands.

Connected(SocketAddrLink)

A new peer has connected and is ready to accept messages. This event is triggered after the peer handshake has successfully completed.

Disconnected(SocketAddr)

A peer has been disconnected.

Received(SocketAddr, M)

Received a message from a peer.

HeadersImported(ImportResult)

Headers have been imported into the block store.

Trait Implementations

impl<M> Clone for Event<M> where
    M: Clone
[src]

impl<M> Debug for Event<M> where
    M: Debug
[src]

impl<M> Eq for Event<M> where
    M: Eq
[src]

impl<M> PartialEq<Event<M>> for Event<M> where
    M: PartialEq<M>, 
[src]

Auto Trait Implementations

impl<M> RefUnwindSafe for Event<M> where
    M: RefUnwindSafe

impl<M> Send for Event<M> where
    M: Send

impl<M> Sync for Event<M> where
    M: Sync

impl<M> Unpin for Event<M> where
    M: Unpin

impl<M> UnwindSafe for Event<M> where
    M: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.