Function tokio_ioext::try_read_full
[−]
[src]
pub fn try_read_full<A, T>(a: A, buf: T) -> TryReadFull<A, T> where
A: AsyncRead,
T: AsMut<[u8]>,
Creates a future which will read as many bytes as possible into buf
and return the number of
bytes read.
The returned future will resolve to the I/O stream, the buffer, and the total bytes read once the read operation is completed.
In the case of an error the buffer and the object will be discarded, with the error yielded.