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