Trait async_io_traits::io::Write

source ·
pub trait Write {
    fn write(&mut self, buf: &[u8]) -> impl Future<Output = Result<usize>>;
    fn flush(&mut self) -> impl Future<Output = Result<()>>;

    async fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize> { ... }
    fn is_write_vectored(&self) -> bool { ... }
    async fn write_all(&mut self, buf: &[u8]) -> Result<()> { ... }
    async fn write_all_vectored(
        &mut self,
        bufs: &mut [IoSlice<'_>]
    ) -> Result<()> { ... } async fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<()> { ... } fn by_ref(&mut self) -> &mut Self
    where
        Self: Sized
, { ... } }

Required Methods

Provided Methods

Implementors