Available on crate feature
network
only.Expand description
Network I/O utilities.
Structs§
- An error indicating that a frame in a framed stream exceeded
MAX_FRAME_SIZE
. - A future which reads exactly enough bytes to fill a buffer, unless EOF is reached first.
- An address associated with a Unix domain socket.
Enums§
- A listener bound to either a TCP socket or Unix domain socket.
- An address associated with an internet or Unix domain socket.
- The type of a
SocketAddr
. - A stream associated with either a TCP socket or a Unix domain socket.
Constants§
- The maximum allowable size of a frame in a framed stream.
Traits§
- Asynchronous IO readiness.
Functions§
- Creates a future which will read exactly enough bytes to fill
buf
, unless EOF is reached first. If a short read should be considered an error, usetokio::io::AsyncReadExt::read_exact
instead. - Resolves a host address and ensures it is a global address when
enforce_global
is set. This parameter is useful when connecting to user-defined unverified addresses.