pub trait AsyncWrite {
// Required method
fn write(&self, buf: &[u8]) -> impl Future<Output = Result<usize>> + Send;
}Expand description
Async byte-stream write — the write-side twin of AsyncRead; see
its doc for the shared rationale.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".