Struct network::transport::Connection [−][src]
pub struct Connection<TSocket> {
pub socket: TSocket,
pub metadata: ConnectionMetadata,
}Expand description
The Connection struct consists of connection metadata and the actual socket for
communication.
Fields
socket: TSocketmetadata: ConnectionMetadataTrait Implementations
Auto Trait Implementations
impl<TSocket> RefUnwindSafe for Connection<TSocket> where
TSocket: RefUnwindSafe,
impl<TSocket> Send for Connection<TSocket> where
TSocket: Send,
impl<TSocket> Sync for Connection<TSocket> where
TSocket: Sync,
impl<TSocket> Unpin for Connection<TSocket> where
TSocket: Unpin,
impl<TSocket> UnwindSafe for Connection<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