[−][src]Trait async_compat::CompatExt
Applies the Compat
adapter to futures and I/O types.
Required methods
fn compat(self) -> Compat<Self>ⓘ where
Self: Sized,
Self: Sized,
Applies the Compat
adapter by value.
Examples
use async_compat::CompatExt; let stdout = tokio::io::stdout().compat();
fn compat_ref(&self) -> Compat<&Self>ⓘ
Applies the Compat
adapter by shared reference.
Examples
use async_compat::CompatExt; let original = tokio::io::stdout(); let stdout = original.compat_ref();