Function tokio_io_utility::read_exact_to_vec
source · [−]pub fn read_exact_to_vec<'a, T: AsyncRead + ?Sized + Unpin>(
reader: &'a mut T,
vec: &'a mut Vec<u8>,
nread: usize
) -> ReadExactToVecFuture<'a, T>ⓘNotable traits for ReadExactToVecFuture<'_, T>impl<T: AsyncRead + ?Sized + Unpin> Future for ReadExactToVecFuture<'_, T> type Output = Result<()>;
Expand description
nread
- bytes to read in
Return ErrorKind::UnexpectedEof
on Eof.
NOTE that this function does not modify any existing data.
Cancel safety
It is cancel safe and dropping the returned future will not stop the wakeup from happening.