pub trait FuturesAsyncReadCompatExt: AsyncRead {
// Provided method
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.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".