Trait tokio_util::compat::Tokio02AsyncWriteCompatExt[][src]

pub trait Tokio02AsyncWriteCompatExt: AsyncWrite {
    fn compat_write(self) -> Compat<Self>
    where
        Self: Sized
, { ... } }

Extension trait that allows converting a type implementing tokio::io::AsyncWrite to implement futures_io::AsyncWrite.

Provided methods

fn compat_write(self) -> Compat<Self> where
    Self: Sized
[src]

Wraps self with a compatibility layer that implements futures_io::AsyncWrite.

Loading content...

Implementors

impl<T: AsyncWrite> Tokio02AsyncWriteCompatExt for T[src]

Loading content...