Skip to main content

AsyncWriteExt

Trait AsyncWriteExt 

Source
pub trait AsyncWriteExt: AsyncWrite {
    // Provided methods
    fn write<'a>(&'a mut self, buf: &'a [u8]) -> Write<'a, Self> ⓘ
       where Self: Unpin { ... }
    fn write_all<'a>(&'a mut self, buf: &'a [u8]) -> WriteAll<'a, Self> ⓘ
       where Self: Unpin { ... }
    fn flush(&mut self) -> Flush<'_, Self> ⓘ
       where Self: Unpin { ... }
    fn shutdown(&mut self) -> Shutdown<'_, Self> ⓘ
       where Self: Unpin { ... }
}
Expand description

Extension methods for types implementing AsyncWrite.

Provided Methods§

Source

fn write<'a>(&'a mut self, buf: &'a [u8]) -> Write<'a, Self> ⓘ
where Self: Unpin,

Write some bytes asynchronously.

Source

fn write_all<'a>(&'a mut self, buf: &'a [u8]) -> WriteAll<'a, Self> ⓘ
where Self: Unpin,

Write all bytes asynchronously.

Source

fn flush(&mut self) -> Flush<'_, Self> ⓘ
where Self: Unpin,

Flush pending writes asynchronously.

Source

fn shutdown(&mut self) -> Shutdown<'_, Self> ⓘ
where Self: Unpin,

Shutdown the write side of the stream.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<W> AsyncWriteExt for W
where W: AsyncWrite + ?Sized,