[−][src]Module futures_util::io
io only.IO
This module contains a number of functions for working with
AsyncRead, AsyncWrite, AsyncSeek, and AsyncBufRead types, including
the AsyncReadExt, AsyncWriteExt, AsyncSeekExt, and AsyncBufReadExt
traits which add methods to the AsyncRead, AsyncWrite, AsyncSeek,
and AsyncBufRead types.
This module is only available when the io and std features of this
library is activated, and it is activated by default.
Structs
| AllowStdIo | ioA simple wrapper type which allows types which implement only
implement |
| BufReader | ioThe |
| BufWriter | ioWraps a writer and buffers its output. |
| Chain | ioReader for the |
| Close | ioFuture for the |
| Copy | ioFuture for the |
| CopyBuf | ioFuture for the |
| Cursor | ioA |
| Empty | ioReader for the |
| Error | ioThe error type for I/O operations of the |
| FillBuf | ioFuture for the |
| Flush | ioFuture for the |
| IntoSink | io and sinkSink for the |
| IoSlice | ioA buffer type used with |
| IoSliceMut | ioA buffer type used with |
| Initializer | Experimentalio and read-initializerA type used to conditionally initialize buffers passed to |
| Lines | ioStream for the |
| Read | ioFuture for the |
| ReadExact | ioFuture for the |
| ReadHalf | ioThe readable half of an object returned from |
| ReadLine | ioFuture for the |
| ReadToEnd | ioFuture for the |
| ReadToString | ioFuture for the |
| ReadUntil | ioFuture for the |
| ReadVectored | ioFuture for the |
| Repeat | ioReader for the |
| ReuniteError | ioError indicating a |
| Seek | ioFuture for the |
| Sink | ioWriter for the |
| Take | ioReader for the |
| Window | ioA owned window around an underlying buffer. |
| Write | ioFuture for the |
| WriteAll | ioFuture for the |
| WriteAllVectored | ioFuture for the
|
| WriteHalf | ioThe writable half of an object returned from |
| WriteVectored | ioFuture for the |
Enums
| ErrorKind | ioA list specifying general categories of I/O error. |
| SeekFrom | ioEnumeration of possible methods to seek within an I/O object. |
Traits
| AsyncBufRead | ioRead bytes asynchronously. |
| AsyncBufReadExt | ioAn extension trait which adds utility methods to |
| AsyncRead | ioRead bytes asynchronously. |
| AsyncReadExt | ioAn extension trait which adds utility methods to |
| AsyncSeek | ioSeek bytes asynchronously. |
| AsyncSeekExt | ioAn extension trait which adds utility methods to |
| AsyncWrite | ioWrite bytes asynchronously. |
| AsyncWriteExt | ioAn extension trait which adds utility methods to |
Functions
| copy | ioCreates a future which copies all the bytes from one object to another. |
| copy_buf | ioCreates a future which copies all the bytes from one object to another. |
| empty | ioConstructs a new handle to an empty reader. |
| repeat | ioCreates an instance of a reader that infinitely repeats one byte. |
| sink | ioCreates an instance of a writer which will successfully consume all data. |
Type Definitions
| Result | ioA specialized |