Trait xwt_core::io::Write

source ·
pub trait Write: Send {
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn write(
        &mut self,
        buf: &[u8]
    ) -> impl Future<Output = Result<usize, Self::Error>> + Send;
}

Required Associated Types§

source

type Error: Error + Send + Sync + 'static

Required Methods§

source

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

Object Safety§

This trait is not object safe.

Implementors§