Trait futures_stable::StableFuture
[−]
[src]
pub trait StableFuture { type Item; type Error; fn poll(
self: PinMut<Self>,
ctx: &mut Context
) -> Poll<Self::Item, Self::Error>; fn pin<'a>(
self
) -> PinBox<Future<Item = Self::Item, Error = Self::Error> + Send + 'a>
where
Self: Send + Sized + 'a, { ... } fn pin_local<'a>(
self
) -> PinBox<Future<Item = Self::Item, Error = Self::Error> + 'a>
where
Self: Sized + 'a, { ... } }
Associated Types
Required Methods
Provided Methods
fn pin<'a>(
self
) -> PinBox<Future<Item = Self::Item, Error = Self::Error> + Send + 'a> where
Self: Send + Sized + 'a,
self
) -> PinBox<Future<Item = Self::Item, Error = Self::Error> + Send + 'a> where
Self: Send + Sized + 'a,
fn pin_local<'a>(
self
) -> PinBox<Future<Item = Self::Item, Error = Self::Error> + 'a> where
Self: Sized + 'a,
self
) -> PinBox<Future<Item = Self::Item, Error = Self::Error> + 'a> where
Self: Sized + 'a,