Trait Write

Source
pub trait Write {
    // Required methods
    fn write(
        &mut self,
        buf: &[u8],
    ) -> impl Future<Output = Result<usize>> + Send;
    fn flush(&mut self) -> impl Future<Output = Result<()>> + Send;
}

Required Methods§

Source

fn write(&mut self, buf: &[u8]) -> impl Future<Output = Result<usize>> + Send

Source

fn flush(&mut self) -> impl Future<Output = Result<()>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§