Trait tokio_util::compat::TokioAsyncWriteCompatExt
source · pub trait TokioAsyncWriteCompatExt: AsyncWrite {
// Provided method
fn compat_write(self) -> Compat<Self>
where Self: Sized { ... }
}
Expand description
Extension trait that allows converting a type implementing
tokio::io::AsyncWrite
to implement futures_io::AsyncWrite
.
Provided Methods§
sourcefn compat_write(self) -> Compat<Self>where
Self: Sized,
fn compat_write(self) -> Compat<Self>where Self: Sized,
Wraps self
with a compatibility layer that implements
futures_io::AsyncWrite
.