tokio_util::compat

Trait FuturesAsyncWriteCompatExt

Source
pub trait FuturesAsyncWriteCompatExt: AsyncWrite {
    // Provided method
    fn compat_write(self) -> Compat<Self>
       where Self: Sized { ... }
}
Available on crate feature compat only.
Expand description

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

Provided Methods§

Source

fn compat_write(self) -> Compat<Self>
where Self: Sized,

Wraps self with a compatibility layer that implements tokio::io::AsyncWrite.

Implementors§