[][src]Enum quic_p2p::Event

pub enum Event {
    BootstrapFailure,
    BootstrappedTo {
        node: NodeInfo,
    },
    ConnectionFailure {
        peer_addr: SocketAddr,
    },
    UnsentUserMessage {
        peer_addr: SocketAddr,
        msg: Bytes,
    },
    ConnectedTo {
        peer: Peer,
    },
    NewMessage {
        peer_addr: SocketAddr,
        msg: Bytes,
    },
    Finish,
}

QuicP2p Events to the user

Variants

BootstrapFailureBootstrappedTo

Fields of BootstrappedTo

node: NodeInfo
ConnectionFailure

Fields of ConnectionFailure

peer_addr: SocketAddr
UnsentUserMessage

Fields of UnsentUserMessage

peer_addr: SocketAddrmsg: Bytes
ConnectedTo

Fields of ConnectedTo

peer: Peer
NewMessage

Fields of NewMessage

peer_addr: SocketAddrmsg: Bytes
Finish

No more messages will be fired after this

Trait Implementations

impl Display for Event[src]

impl Debug for Event[src]

Auto Trait Implementations

impl Send for Event

impl Sync for Event

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized