pub trait TokioAsyncWriteCompatExt: AsyncWrite {
    fn compat_write(self) -> Compat<Self>
    where
        Self: Sized
, { ... } }
This is supported on crate feature compat only.
Expand description

Extension trait that allows converting a type implementing tokio::io::AsyncWrite to implement futures_io::AsyncWrite.

Provided methods

Wraps self with a compatibility layer that implements futures_io::AsyncWrite.

Implementors