pub unsafe trait DynWrite: MaybeSend + Sealed {
// Required methods
fn write_all(
&mut self,
buf: Buf,
) -> Pin<Box<dyn MaybeSendFuture<Output = (Result<(), Error>, Buf)> + '_>>;
fn flush(
&mut self,
) -> Pin<Box<dyn MaybeSendFuture<Output = Result<(), Error>> + '_>>;
fn close(
&mut self,
) -> Pin<Box<dyn MaybeSendFuture<Output = Result<(), Error>> + '_>>;
}Available on crate feature
alloc only.Expand description
Dyn compatible (object safe) version of Write.
All implementations of Write automatically implement this trait.
Also, all implementations of DynWrite automatically implement Write.
Users should not use this trait directly.
§Safety
Do not implement this trait directly. All implementations of Write automatically
implement this trait.