pub trait CompatExt {
// Required methods
fn compat(self) -> Compat<Self> ⓘ
where Self: Sized;
fn compat_ref(&self) -> Compat<&Self> ⓘ;
fn compat_mut(&mut self) -> Compat<&mut Self> ⓘ;
}
Expand description
Applies the Compat
adapter to futures and I/O types.
Required Methods§
Sourcefn compat_ref(&self) -> Compat<&Self> ⓘ
fn compat_ref(&self) -> Compat<&Self> ⓘ
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.