Macros§
- ready
- Replacement for
std::task::ready
.
Structs§
- Read
Exact ToBytes Future bytes
- Returned future of
read_exact_to_bytes
. - Read
Exact ToVec Future - Returned future of
read_exact_to_vec
. - Read
ToBytes RngFuture bytes
- Returned future of
read_to_bytes_rng
. - Read
ToBytes Until EndFuture bytes
- Return future of
read_to_bytes_until_end
- Read
ToContainer RngFuture - Read
ToVec Future - Returned future of
read_to_vec
. - Read
ToVec RngFuture - Returned future of
read_to_vec_rng
. - Reusable
IoSlices Box
edIoSlice
that can be reused for different io_slices with different lifetime.
Traits§
Functions§
- assert_
send - init_
maybeuninit_ io_ slices_ mut - read_
exact_ to_ bytes bytes
nread
- bytes to read in- read_
exact_ to_ vec nread
- bytes to read in- read_
to_ bytes_ rng bytes
rng
- The start of the range specify the minimum of bytes to read in, while the end of the range specify the maximum of bytes that can be read in. If the lower bound is not specified, it is default to 0. If the upper bound is not specified, it is default to the capacity ofbytes
. The lower bound must not be larger than the upper bound.- read_
to_ bytes_ until_ end bytes
- NOTE that this function does not modify any existing data.
- read_
to_ container_ rng rng
- The start of the range specify the minimum of bytes to read in, while the end of the range specify the maximum of bytes that can be read in. If the lower bound is not specified, it is default to 0. If the upper bound is not specified, it is default to the capacity ofbytes
. The lower bound must not be larger than the upper bound.- read_
to_ vec - Try to fill data from
reader
into the spare capacity ofvec
. - read_
to_ vec_ rng rng
- The start of the range specify the minimum of bytes to read in, while the end of the range specify the maximum of bytes that can be read in. If the lower bound is not specified, it is default to 0. If the upper bound is not specified, it is default to the capacity ofbytes
. The lower bound must not be larger than the upper bound.- write_
all_ bytes buffer
- must not contain emptyBytes
s.- write_
vectored_ all - Return true if the
bufs
contains at least one byte.