Function tokio::io::util::write::write

source ·
pub(crate) fn write<'a, W>(writer: &'a mut W, buf: &'a [u8]) -> Write<'a, W> 
where W: AsyncWrite + Unpin + ?Sized,
Expand description

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