Trait Net

Source
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§

Source

type Runtime: RuntimeLite

The runtime type

Source

type TcpListener: TcpListener<Stream = Self::TcpStream, Runtime = Self::Runtime>

The TcpListener implementation

Source

type TcpStream: TcpStream<Runtime = Self::Runtime>

The TcpStream implementation

Source

type UdpSocket: UdpSocket<Runtime = Self::Runtime>

The UdpSocket implementation

Implementors§