Macros§
- Replacement for
std::task::ready
.
Structs§
- Returned future of
read_exact_to_vec
. - Returned future of
read_to_vec
. - Returned future of
read_to_vec_rng
.
Traits§
Functions§
nread
- bytes to read inrng
- 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.- Try to fill data from
reader
into the spare capacity ofvec
. 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.- Return true if the
bufs
contains at least one byte.