pub enum TransportNotification<TSocket> {
NewConnection(Connection<TSocket>),
Disconnected(ConnectionMetadata, DisconnectReason),
}
Variants§
NewConnection(Connection<TSocket>)
Disconnected(ConnectionMetadata, DisconnectReason)
Trait Implementations§
source§impl<TSocket: Debug> Debug for TransportNotification<TSocket>
impl<TSocket: Debug> Debug for TransportNotification<TSocket>
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§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> Serialize for Twhere
T: Serialize + ?Sized,
impl<T> Serialize for Twhere T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.