[][src]Enum koibumi_node::Event

pub enum Event {
    ConnectionCounts {
        incoming_initiated: usize,
        incoming_connected: usize,
        incoming_established: usize,
        outgoing_initiated: usize,
        outgoing_connected: usize,
        outgoing_established: usize,
    },
    AddrCount(usize),
    Established {
        addr: SocketAddrExt,
        user_agent: UserAgent,
    },
    Disconnected {
        addr: SocketAddrExt,
    },
    Objects {
        missing: usize,
        loaded: usize,
        uploaded: usize,
    },
    Stopped,
}

The events which occur in a Bitmessage node.

Variants

ConnectionCounts

Indicates the stats of the counts of connections have been changed.

Fields of ConnectionCounts

incoming_initiated: usizeincoming_connected: usizeincoming_established: usizeoutgoing_initiated: usizeoutgoing_connected: usizeoutgoing_established: usize
AddrCount(usize)

Indicates the count of known node addresses has been changed.

Established

Indicates a connection to a node has newly been established. The socket address and the user agent of the node are returned.

Fields of Established

addr: SocketAddrExtuser_agent: UserAgent
Disconnected

Indicates an established connection to a node has been disconnected. The socket address of the node is returned.

Fields of Disconnected

addr: SocketAddrExt
Objects

Indicates the stats of the counts of objects are changed.

Fields of Objects

missing: usizeloaded: usizeuploaded: usize
Stopped

Indicates the node has been stopped.

Trait Implementations

impl Clone for Event[src]

impl Debug for Event[src]

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

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> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,