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§
Sourcefn write<'a>(&'a mut self, buf: &'a [u8]) -> Write<'a, Self>where
Self: Unpin,
fn write<'a>(&'a mut self, buf: &'a [u8]) -> Write<'a, Self>where
Self: Unpin,
Write some bytes asynchronously.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".