Trait futures_compat::futures_02::StreamInto01 [] [src]

pub trait StreamInto01: Stream02 {
    fn into_01_compat<E>(self, exec: E) -> Stream02As01<E, Self>
    where
        Self: Sized,
        E: Executor02
; }

A trait to convert any Stream from v0.2 into a Stream02As01.

Implemented for all types that implement v0.2's Stream automatically.

Required Methods

Converts this stream into a Stream02As01.

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

Implementors