Trait AsyncWrite

Source
pub trait AsyncWrite {
    type Fut: Future<Output = Result<usize>>;

    // Required method
    fn write(&mut self, buf: &[u8]) -> Self::Fut;
}
Expand description

Async version of std::io::Write.

Required Associated Types§

Source

type Fut: Future<Output = Result<usize>>

The future returned by write.

Required Methods§

Source

fn write(&mut self, buf: &[u8]) -> Self::Fut

Write data.

Implementors§