Trait futures_compat::futures_02::FutureInto01
[−]
[src]
pub trait FutureInto01: Future02 { fn into_01_compat<E>(self, exec: E) -> Future02As01<E, Self>
where
Self: Sized,
E: Executor02; fn into_01_compat_never_unit<E>(
self,
exec: E
) -> Future02NeverAs01Unit<E, Self>
where
Self: Future02<Error = Never> + Sized,
E: Executor02; }
A trait to convert any Future
from v0.2 into a Future02As01
.
Implemented for all types that implement v0.2's Future
automatically.
Required Methods
fn into_01_compat<E>(self, exec: E) -> Future02As01<E, Self> where
Self: Sized,
E: Executor02,
Self: Sized,
E: Executor02,
Converts this future into a Future02As01
.
An executor is required to allow this wrapped future to still access
Context::spawn
while wrapped.
fn into_01_compat_never_unit<E>(self, exec: E) -> Future02NeverAs01Unit<E, Self> where
Self: Future02<Error = Never> + Sized,
E: Executor02,
Self: Future02<Error = Never> + Sized,
E: Executor02,
Converts this future into a Future02NeverAs01Unit
.
An executor is required to allow this wrapped future to still access
Context::spawn
while wrapped.
Implementors
impl<F> FutureInto01 for F where
F: Future02,