[][src]Module completion::io

Utilities for programming with asynchronous I/O.

Requires the std feature.

Structs

BufReader

Add buffering to any reader.

BufWriter

Buffer the output of a writer.

Chain

Reader for AsyncReadExt::chain.

Copy

Future for copy.

CopyBuf

Future for copy_buf.

Cursor

A Cursor wraps an in-memory buffer and provides it with a Seek implementation.

DefaultWriteVectored

A default implementation of WriteVectoredFuture for types that don't have efficient vectored writes.

Empty

A reader which is always at EOF.

Error

The error type for I/O operations of the Read, Write, Seek, and associated traits.

FillBufBufReader

Future for fill_buf on a BufReader.

FillBufChain

Future for fill_buf on a Chain.

FillBufTake

Future for fill_buf on a Take.

FillBufTakeUntil

Future for fill_buf on a TakeUntil.

FlushBufWriter

Future for [flush] on a BufWriter.

IoSlice

A buffer type used with Write::write_vectored.

Lines

Stream for AsyncBufReadExt::lines.

ReadBuf

A wrapper around a byte buffer that is incrementally filled and initialized.

ReadBufMut

A type that grants mutable access to a ReadBuf.

ReadBufReader

Future for read on a BufReader.

ReadChain

Future for read on a Chain.

ReadCursor

Future for read on a Cursor.

ReadExact

Future for AsyncReadExt::read_exact.

ReadLine

Future for AsyncReadExt::read_line.

ReadRepeat

Future for read on a Repeat.

ReadSlice

Future for read on a byte slice (&[u8]).

ReadTake

Future for read on a Take.

ReadTakeUntil

Future for read on a TakeUntil.

ReadToEnd

Future for AsyncReadExt::read_to_end.

ReadToString

Future for AsyncReadExt::read_to_string.

ReadUntil

Future for AsyncReadExt::read_until.

Repeat

A reader which yields one byte over and over and over and over and over and...

SeekCursor

Future for seek on a Cursor.

Sink

A writer which will move data into the void.

Split

Stream for AsyncBufReadExt::split.

Take

Reader for AsyncReadExt::take.

TakeUntil

Reader for AsyncReadExt::take_until.

WriteAll

Future for AsyncWriteExt::write_all.

WriteBufWriter

Future for write on a BufWriter.

WriteSlice

Future for write on a byte slice (&mut [u8]).

WriteVec

Future for write on a Vec<u8>.

WriteVectoredBufWriter

Future for write_vectored on a BufWriter.

WriteVectoredSlice

Future for write_vectored on a byte slice (&mut [u8]).

WriteVectoredVec

Future for write_vectored on a Vec<u8>.

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 from a source that has an internal buffer asynchronously.

AsyncBufReadExt

Extension trait for AsyncBufRead.

AsyncBufReadWith

Read bytes from a source that has an internal buffer asynchronously with a specific lifetime.

AsyncRead

Read bytes from a source asynchronously.

AsyncReadExt

Extension trait for AsyncRead.

AsyncReadWith

Read bytes from a source asynchronously with a specific lifetime.

AsyncSeek

A cursor which can be moved within a stream of bytes.

AsyncSeekExt

Extension trait for AsyncSeek.

AsyncSeekWith

A cursor which can be moved within a stream of bytes with a specific lifetime.

AsyncWrite

Write bytes to a source asynchronously.

AsyncWriteExt

Extension trait for AsyncWrite.

AsyncWriteWith

Write bytes to a source asynchronously with a specific lifetime.

Functions

copy

Copy the entire contents of a reader into a writer.

copy_buf

Copy the entire contents of a buffered reader into a writer.

empty

Constructs a new handle to an empty reader.

repeat

Creates an instance of a reader that infinitely repeats one byte.

sink

Creates an instance of a writer which will successfully consume all data.

Type Definitions

Result

A specialized Result type for I/O operations.