pub trait DynWrite: MaybeSend { // Required methods fn write_all( &mut self, buf: Buf, ) -> Pin<Box<dyn MaybeSendFuture<Output = (Result<(), BoxedError>, Buf)> + '_>>; fn flush( &mut self, ) -> Pin<Box<dyn MaybeSendFuture<Output = Result<(), BoxedError>> + '_>>; fn close( &mut self, ) -> Pin<Box<dyn MaybeSendFuture<Output = Result<(), BoxedError>> + '_>>; }
Dyn compatible(object safety) version of Write. All implementations of Write has already implemented this trait. Also, all implementations of DynWrite has already implemented Write. User should not use this trait directly.
Write
DynWrite