Crate tokio_io_utility

Source

Macros§

ready
Replacement for std::task::ready.

Structs§

ReadExactToBytesFuturebytes
Returned future of read_exact_to_bytes.
ReadExactToVecFuture
Returned future of read_exact_to_vec.
ReadToBytesRngFuturebytes
Returned future of read_to_bytes_rng.
ReadToBytesUntilEndFuturebytes
Return future of read_to_bytes_until_end
ReadToContainerRngFuture
ReadToVecFuture
Returned future of read_to_vec.
ReadToVecRngFuture
Returned future of read_to_vec_rng.
ReusableIoSlices
Boxed IoSlice that can be reused for different io_slices with different lifetime.

Traits§

Container
IoSliceExt
IoSliceMutExt

Functions§

assert_send
init_maybeuninit_io_slices_mut
read_exact_to_bytesbytes
nread - bytes to read in
read_exact_to_vec
nread - bytes to read in
read_to_bytes_rngbytes
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 of bytes. The lower bound must not be larger than the upper bound.
read_to_bytes_until_endbytes
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 of bytes. The lower bound must not be larger than the upper bound.
read_to_vec
Try to fill data from reader into the spare capacity of vec.
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 of bytes. The lower bound must not be larger than the upper bound.
write_all_bytes
buffer - must not contain empty Bytess.
write_vectored_all
Return true if the bufs contains at least one byte.