Trait await::io::WriteAsync [] [src]

pub trait WriteAsync {
    fn write_async(&mut self, buf: &[u8]) -> Box<AwaitBox<Result<usize>>>;
    fn flush_async(&mut self) -> Box<AwaitBox<Result<()>>>;
}

A trait for objects which are byte-oriented asynchronous sinks.

Required Methods

fn write_async(&mut self, buf: &[u8]) -> Box<AwaitBox<Result<usize>>>

fn flush_async(&mut self) -> Box<AwaitBox<Result<()>>>

Implementors