Enum network::peer_manager::TransportNotification [−][src]
pub enum TransportNotification<TSocket> {
NewConnection(Connection<TSocket>),
Disconnected(ConnectionMetadata, DisconnectReason),
}Variants
NewConnection(Connection<TSocket>)Tuple Fields of NewConnection
0: Connection<TSocket>Disconnected(ConnectionMetadata, DisconnectReason)Tuple Fields of Disconnected
Trait Implementations
Auto Trait Implementations
impl<TSocket> RefUnwindSafe for TransportNotification<TSocket> where
TSocket: RefUnwindSafe,
impl<TSocket> Send for TransportNotification<TSocket> where
TSocket: Send,
impl<TSocket> Sync for TransportNotification<TSocket> where
TSocket: Sync,
impl<TSocket> Unpin for TransportNotification<TSocket> where
TSocket: Unpin,
impl<TSocket> UnwindSafe for TransportNotification<TSocket> where
TSocket: UnwindSafe,
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.