[−][src]Module smol::io
Tools and combinators for I/O.
Examples
use futures_lite::*; future::block_on(async { let input: &[u8] = b"hello"; let mut reader = io::BufReader::new(input); let mut contents = String::new(); reader.read_to_string(&mut contents).await?;
Structs
Enums
| ErrorKind | A list specifying general categories of I/O error. |
| SeekFrom | Enumeration of possible methods to seek within an I/O object. |
Traits
| AsyncBufRead | Read bytes asynchronously. |
| AsyncBufReadExt | Extension trait for |
| AsyncRead | Read bytes asynchronously. |
| AsyncReadExt | Extension trait for |
| AsyncSeek | Seek bytes asynchronously. |
| AsyncSeekExt | Extension trait for |
| AsyncWrite | Write bytes asynchronously. |
| AsyncWriteExt | Extension trait for |
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. |
Type Definitions
| Result | A specialized |