Expand description
IO tasks.
Most of the types in this module are re-exported from futures_lite::io.
Structs§
- BufReader
- Adds buffering to a reader.
- BufWriter
- Adds buffering to a writer.
- Cloneable
Error - Represents the cloneable parts of an
Error. - Cursor
- Gives an in-memory buffer a cursor for reading and writing.
- McBuf
Reader - Multiple consumer buffered read.
- Measure
- Measure read/write of an async task.
- Metrics
- Information about the state of an async IO task.
- Read
Half - The read half returned by
split(). - Read
Limited - Represents a future that generates an error if an
AsyncReadexceeds a limit. - Write
Half - The write half returned by
split().
Statics§
- METRICS_
ID - Metrics in a
Progress::with_metametadata.
Traits§
- Async
BufRead - Read bytes asynchronously.
- Async
BufRead Ext - Extension trait for
AsyncBufRead. - Async
Read - Read bytes asynchronously.
- Async
Read Ext - Extension trait for
AsyncRead. - Async
Seek - Seek bytes asynchronously.
- Async
Seek Ext - Extension trait for
AsyncSeek. - Async
Write - Write bytes asynchronously.
- Async
Write Ext - Extension trait for
AsyncWrite. - McBuf
Error Ext - Extension methods for
std::io::Errorto be used with errors returned byMcBufReader.
Functions§
- copy
- Copies the entire contents of a reader into a writer.
- empty
- Creates an empty reader.
- repeat
- Creates an infinite reader that reads the same byte repeatedly.
- sink
- Creates a writer that consumes and drops all data.
- split
- Splits a stream into
AsyncReadandAsyncWritehalves.
Type Aliases§
- Boxed
Reader - Type alias for
Pin<Box<dyn AsyncRead + Send + 'static>>. - Boxed
Writer - Type alias for
Pin<Box<dyn AsyncWrite + Send + 'static>>.