Function tokio::io::util::read_exact::read_exact
source · pub(crate) fn read_exact<'a, A>(
reader: &'a mut A,
buf: &'a mut [u8],
) -> ReadExact<'a, A> ⓘ
Expand description
A future which can be used to easily read exactly enough bytes to fill a buffer.
Created by the AsyncReadExt::read_exact
.
read_exact
: crate::io::AsyncReadExt::read_exact