Trait AsyncWrite
associated_async_io
pub trait AsyncWrite { type Fut: Future<Output = Result<usize>>; fn write(&mut self, buf: &[u8]) -> Self::Fut; }
Async version of std::io::Write.
std::io::Write
type Fut: Future<Output = Result<usize>>
The future returned by write.
write
fn write(&mut self, buf: &[u8]) -> Self::Fut
Write data.