Expand description
I/O traits extending std::io::Read and std::io::Write.
Structs§
- Layered
Duplexer - Adapts an
Read+Writeto implementHalfDuplexLayered. - Layered
Reader - Adapts an
Readto implementReadLayered. - Layered
Writer - Adapts a
std::io::Writeto implementWriteLayered. - Slice
Reader - Adapts an
&[u8]to implementReadLayered.
Enums§
- Activity
- For interactivity, it’s desirable to avoid buffering data which is complete
enough to be actionable.
Activityallows writers to notify the API at points when the data provided is actionable and buffers should be flushed to the reader. - Status
- What is known about a stream in the future.
Traits§
- Bufferable
- A trait to help with buffering on top of
ReadLayeredandWriteLayered. - Half
Duplex Layered - A trait which simply combines
ReadLayered,WriteLayered, andHalfDuplex. - Read
Layered - An extension of
Read, withread_with_statusandread_vectored_with_statuswhich return status information and zero is not special-cased. It also allows streams to specify aminimum_buffer_size. - Write
Layered - An extension of
std::io::Write, but adds aclosefunction to allow the stream to be closed and any outstanding errors to be reported, without requiring async_all.
Functions§
- default_
is_ read_ vectored - Default implementation of
Read::is_read_vectoredaccompanying [default_read_vectored_with_status]. - default_
is_ write_ vectored - Default implementation of
Write::is_write_vectoredaccompanyingdefault_write_vectored. - default_
read - Default implementation of
Read::readin terms ofReadLayered::read_with_status. - default_
read_ exact_ using_ status - Default implementation of
ReadLayered::read_exact_using_statusin terms ofReadLayered::read_with_status. - default_
read_ to_ end - Default implementation of
Read::read_to_endin terms ofReadLayered::read_with_status. - default_
read_ to_ string - Default implementation of
Read::read_to_stringin terms ofRead::read_to_end. - default_
read_ vectored - Default implementation of
Read::read_vectoredin terms ofReadLayered::read_vectored_with_status. - default_
suggested_ buffer_ size - Default implementation of
Bufferable::abandon, which does nothing. - default_
write_ all - Default implementation of
Write::write_all, in terms ofWrite::write. - default_
write_ all_ vectored - Default implementation of
Write::write_all_vectored, in terms ofWrite::write_vectored. - default_
write_ vectored - Default implementation of
Write::write_vectored, in terms ofWrite::write. - to_
std_ io_ read_ result - Translate from
read_with_status’s return value with independent size and status to astd::io::Read::readreturn value where 0 is special-cased to mean end-of-stream, anio::ErrorKind::Interruptederror is used to indicate a zero-length read, and pushes are not reported.