Function read_buf
async fn read_buf<R, B>(read: &mut R, buf: &mut B) -> Result<usize>
where
R: AsyncRead + Unpin,
B: BufMut
Read data from an AsyncRead into an implementer of the BufMut trait.
Example
use ;
use tokio_stream as stream;
use Result;
use ;
#
# async