Trait futures_compat::futures_02::AsyncIoIntoTokio [] [src]

pub trait AsyncIoIntoTokio {
    fn into_tokio_compat<E>(self, exec: E) -> AsyncIo02AsTokio<E, Self>
    where
        Self: AsyncRead02 + AsyncWrite02 + Sized,
        E: Executor02
; }

A trait to convert any AsyncRead/AsyncWrite from v0.2 into a AsyncIo02AsTokio.

Implemented for all types that implement v0.2's AsyncRead/AsyncWrite automatically.

Required Methods

Important traits for AsyncIo02AsTokio<E, I>

Converts this IO into an AsyncIo02AsTokio.

An executor is required to allow this wrapped future to still access Context::spawn while wrapped.

Implementors