[][src]Trait tokio_util::compat::Tokio02AsyncReadCompatExt

pub trait Tokio02AsyncReadCompatExt: AsyncRead {
    fn compat(self) -> Compat<Self>
    where
        Self: Sized
, { ... } }
This is supported on feature="compat" only.

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

Provided methods

fn compat(self) -> Compat<Self> where
    Self: Sized

This is supported on feature="compat" only.

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

Loading content...

Implementors

impl<T: AsyncRead> Tokio02AsyncReadCompatExt for T[src]

Loading content...