pub trait Write { type Write<'a>: 'a + Future<Output = Result<usize, Error>> where Self: 'a; fn write<'a>(&'a mut self, buf: &'a [u8]) -> Self::Write<'a>; }
Writes some bytes into an object.
A future that resolves to the result of Self::write.
Self::write
Writes some bytes from buf into this object.
buf
Returns the number of bytes written.