Expand description
I/O conveniences when working with primitives in tokio-core
Contains various combinators to work with I/O objects and type definitions as well.
A description of the high-level I/O combinators can be found online in addition to a description of the low level details.
Structs§
- A simple wrapper type which allows types that only implement
std::io::Read
orstd::io::Write
to be used in contexts which expect anAsyncRead
orAsyncWrite
. - A future which will copy all data from a reader into a writer.
- A future used to fully flush an I/O object.
- Combinator created by the top-level
lines
method which is a stream over the lines of text on an I/O object. - A future which can be used to easily read available number of bytes to fill a buffer.
- A future which can be used to easily read exactly enough bytes to fill a buffer.
- The readable half of an object returned from
AsyncRead::split
. - A future which can be used to easily read the entire contents of a stream into a vector.
- A future which can be used to easily read the contents of a stream into a vector until the delimiter is reached.
- A future used to fully shutdown an I/O object.
- A owned window around an underlying buffer.
- A future used to write the entire contents of some data to a stream.
- The writable half of an object returned from
AsyncRead::split
.
Functions§
- Creates a future which represents copying all the bytes from one object to another.
- Creates a future which will entirely flush an I/O object and then yield the object itself.
- Creates a new stream from the I/O object given representing the lines of input that are found on
A
. - Tries to read some bytes directly into the given
buf
in asynchronous manner, returning a future type. - Creates a future which will read exactly enough bytes to fill
buf
, returning an error if EOF is hit sooner. - Creates a future which will read all the bytes associated with the I/O object
A
into the buffer provided. - Creates a future which will read all the bytes associated with the I/O object
A
into the buffer provided until the delimiterbyte
is reached. This method is the async equivalent toBufRead::read_until
. - Creates a future which will entirely shutdown an I/O object and then yield the object itself.
- Creates a future that will write the entire contents of the buffer
buf
to the streama
provided.