Trait tokio_util::compat::FuturesAsyncReadCompatExt
source · pub trait FuturesAsyncReadCompatExt: AsyncRead {
fn compat(self) -> Compat<Self>
where
Self: Sized,
{ ... }
}
Expand description
Extension trait that allows converting a type implementing
futures_io::AsyncRead
to implement tokio::io::AsyncRead
.