Module ore::netio [−][src]
This is supported on crate feature
network
only.Expand description
Network I/O utilities.
Modules
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.
A SniffingStream
that has relinquished its capability to sniff bytes.
A stream that can peek at its initial bytes without consuming them.
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, use
tokio::io::AsyncReadExt::read_exact
instead.