pub trait Net:
Unpin
+ Send
+ Sync
+ 'static {
type Runtime: RuntimeLite;
type TcpListener: TcpListener<Stream = Self::TcpStream, Runtime = Self::Runtime>;
type TcpStream: TcpStream<Runtime = Self::Runtime>;
type UdpSocket: UdpSocket<Runtime = Self::Runtime>;
}
Expand description
An abstraction layer for the async runtime’s network.
Required Associated Types§
Sourcetype Runtime: RuntimeLite
type Runtime: RuntimeLite
The runtime type
Sourcetype TcpListener: TcpListener<Stream = Self::TcpStream, Runtime = Self::Runtime>
type TcpListener: TcpListener<Stream = Self::TcpStream, Runtime = Self::Runtime>
The TcpListener
implementation