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
Pendingio operations.
Macros§
- read_nz
- A variant of try_ready! that checks whether the expression evaluates to 0, and emits a
futures_io::Errorof kindUnexpectedEofwith the given message if so. - retry
- Helper macro for working with
io::Resultin a context whereErrorKind::Interruptedmeans to retry an action. This macro corresponds tostd::try, but it will reevaluate the expression until it does not evaluate to anErrof kindInterrupted. - write_
nz - A variant of try_ready! that checks whether the expression evaluates to 0, and emits a
futures_io::Errorof kindWriteZerowith the given message if so.
Structs§
- Duplex
- Implements both AsyncRead and AsyncWrite by delegating to an AsyncRead and an AsyncWrite, taking ownership of both.