[−][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 | io A simple wrapper type which allows types which implement only
implement |
BufReader | io The |
BufWriter | io Wraps a writer and buffers its output. |
Chain | io Reader for the |
Close | io Future for the |
Copy | io Future for the |
CopyBuf | io Future for the |
Cursor | io A |
Empty | io Reader for the |
Error | io The error type for I/O operations of the |
FillBuf | io Future for the |
Flush | io Future for the |
IntoSink | io and sink Sink for the |
IoSlice | io A buffer type used with |
IoSliceMut | io A buffer type used with |
Initializer | Experimentalio and read-initializer A type used to conditionally initialize buffers passed to |
Lines | io Stream for the |
Read | io Future for the |
ReadExact | io Future for the |
ReadHalf | io The readable half of an object returned from |
ReadLine | io Future for the |
ReadToEnd | io Future for the |
ReadToString | io Future for the |
ReadUntil | io Future for the |
ReadVectored | io Future for the |
Repeat | io Reader for the |
ReuniteError | io Error indicating a |
Seek | io Future for the |
Sink | io Writer for the |
Take | io Reader for the |
Window | io A owned window around an underlying buffer. |
Write | io Future for the |
WriteAll | io Future for the |
WriteAllVectored | io Future for the
|
WriteHalf | io The writable half of an object returned from |
WriteVectored | io Future for the |
Enums
ErrorKind | io A list specifying general categories of I/O error. |
SeekFrom | io Enumeration of possible methods to seek within an I/O object. |
Traits
AsyncBufRead | io Read bytes asynchronously. |
AsyncBufReadExt | io An extension trait which adds utility methods to |
AsyncRead | io Read bytes asynchronously. |
AsyncReadExt | io An extension trait which adds utility methods to |
AsyncSeek | io Seek bytes asynchronously. |
AsyncSeekExt | io An extension trait which adds utility methods to |
AsyncWrite | io Write bytes asynchronously. |
AsyncWriteExt | io An extension trait which adds utility methods to |
Functions
copy | io Creates a future which copies all the bytes from one object to another. |
copy_buf | io Creates a future which copies all the bytes from one object to another. |
empty | io Constructs a new handle to an empty reader. |
repeat | io Creates an instance of a reader that infinitely repeats one byte. |
sink | io Creates an instance of a writer which will successfully consume all data. |
Type Definitions
Result | io A specialized |