Expand description
Utilities for working with std::io
and futures_io
.
Modules§
- limited_
reader - A wrapper around a reader that limits how many bytes can be read from it.
- partial
- Helpers to test partial and
Pending
io operations.
Macros§
- read_nz
- A variant of try_ready! that checks whether the expression evaluates to 0, and emits a
futures_io::Error
of kindUnexpectedEof
with the given message if so. - retry
- Helper macro for working with
io::Result
in a context whereErrorKind::Interrupted
means to retry an action. This macro corresponds tostd::try
, but it will reevaluate the expression until it does not evaluate to anErr
of kindInterrupted
. - write_
nz - A variant of try_ready! that checks whether the expression evaluates to 0, and emits a
futures_io::Error
of kindWriteZero
with the given message if so.
Structs§
- Duplex
- Implements both AsyncRead and AsyncWrite by delegating to an AsyncRead and an AsyncWrite, taking ownership of both.