[−][src]Enum quic_p2p::Event
QuicP2p Events to the user
Variants
BootstrapFailure
Network bootstrap failed.
BootstrappedTo
Bootstrap connection to this node was successful.
Fields of BootstrappedTo
node: NodeInfo
Node information.
ConnectionFailure
Connection to this peer failed.
Fields of ConnectionFailure
SentUserMessage
The given message was successfully sent to this peer.
Fields of SentUserMessage
peer_addr: SocketAddr
Peer address.
msg: Bytes
Sent message.
token: Token
Token, originally given by the user, for context.
UnsentUserMessage
The given message was not sent to this peer.
Fields of UnsentUserMessage
peer_addr: SocketAddr
Peer address.
msg: Bytes
Unsent message.
token: Token
Token, originally given by the user, for context.
ConnectedTo
Successfully connected to this peer.
Fields of ConnectedTo
peer: Peer
Peer information.
NewMessage
A new message was received from this peer.
Fields of NewMessage
Finish
No more messages will be fired after this
Trait Implementations
Auto Trait Implementations
impl Unpin for Event
impl Sync for Event
impl Send for Event
impl !RefUnwindSafe for Event
impl !UnwindSafe for Event
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,