Enum network::peer_manager::ConnectionNotification [−][src]
pub enum ConnectionNotification {
NewPeer(ConnectionMetadata, NetworkContext),
LostPeer(ConnectionMetadata, NetworkContext, DisconnectReason),
}Variants
NewPeer(ConnectionMetadata, NetworkContext)Connection with a new peer has been established.
Tuple Fields of NewPeer
LostPeer(ConnectionMetadata, NetworkContext, DisconnectReason)Connection to a peer has been terminated. This could have been triggered from either end.
Tuple Fields of LostPeer
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for ConnectionNotification
impl Send for ConnectionNotification
impl Sync for ConnectionNotification
impl Unpin for ConnectionNotification
impl UnwindSafe for ConnectionNotification
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self
Generates a hash used only for tests.