Trait tokio_util::compat::FuturesAsyncReadCompatExt

source ·
pub trait FuturesAsyncReadCompatExt: AsyncRead {
    // Provided method
    fn compat(self) -> Compat<Self>
       where Self: Sized { ... }
}
Available on crate feature compat only.
Expand description

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

Provided Methods§

source

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

Wraps self with a compatibility layer that implements tokio_io::AsyncRead.

Implementors§