[−][src]Module futures::io
Asynchronous I/O.
This module is the asynchronous version of std::io. It defines two
traits, AsyncRead and
AsyncWrite, which mirror the Read and
Write traits of the standard library. However, these traits integrate
with the asynchronous task system, so that if an I/O object isn't ready
for reading (or writing), the thread is not blocked, and instead the
current task is queued to be woken when I/O is ready.
In addition, the AsyncReadExt and
AsyncWriteExt extension traits offer a
variety of useful combinators for operating with asynchronous I/O
objects, including ways to work with them using futures, streams and
sinks.
Structs
| AllowStdIo | A simple wrapper type which allows types which implement only
implement |
| BufReader | The |
| Close | Future for the |
| CopyInto | Future for the |
| Error | The error type for I/O operations of the |
| Flush | Future for the |
| Initializer | A type used to conditionally initialize buffers passed to |
| IoSlice | A buffer type used with |
| IoSliceMut | A buffer type used with |
| Lines | Stream for the |
| Read | Future for the |
| ReadExact | Future for the |
| ReadHalf | The readable half of an object returned from |
| ReadLine | Future for the |
| ReadToEnd | Future for the |
| ReadUntil | Future for the |
| Seek | Future for the |
| Window | A owned window around an underlying buffer. |
| WriteAll | Future for the |
| WriteHalf | The writable half of an object returned from |
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 | An extension trait which adds utility methods to |
| AsyncRead | Read bytes asynchronously. |
| AsyncReadExt | An extension trait which adds utility methods to |
| AsyncSeek | Seek bytes asynchronously. |
| AsyncSeekExt | An extension trait which adds utility methods to |
| AsyncWrite | Write bytes asynchronously. |
| AsyncWriteExt | An extension trait which adds utility methods to |
Type Definitions
| Result | A specialized |