Function tokio::io::util::write_buf::write_buf

source ·
pub(crate) fn write_buf<'a, W, B>(
    writer: &'a mut W,
    buf: &'a mut B,
) -> WriteBuf<'a, W, B> 
where W: AsyncWrite + Unpin, B: Buf,
Expand description

Tries to write some bytes from the given buf to the writer in an asynchronous manner, returning a future.