[−][src]Enum quic_p2p::Event
QuicP2p Events to the user
Variants
Network bootstrap failed.
Bootstrap connection to this node was successful.
Fields of BootstrappedTo
node: NodeInfo
Node information.
Connection to this peer failed.
Fields of ConnectionFailure
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.
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.
Successfully connected to this peer.
Fields of ConnectedTo
peer: Peer
Peer information.
A new message was received from this peer.
Fields of NewMessage
No more messages will be fired after this
Trait Implementations
Auto Trait Implementations
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl !UnwindSafe for Event
impl !RefUnwindSafe for Event
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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,