Function tokio_io::io::read [] [src]

pub fn read<R, T>(rd: R, buf: T) -> Read<R, T> where
    R: AsyncRead,
    T: AsMut<[u8]>, 

Tries to read some bytes directly into the given buf in asynchronous manner, returning a future type.

The returned future will resolve to both the I/O stream and the buffer as well as the number of bytes read once the read operation is completed.