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> 
Expand description
  • nread - bytes to read in

Return std::io::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.