scoped_futures

Type Alias ScopedLocalBoxFuture

source
pub type ScopedLocalBoxFuture<'upper_bound, 'subject, T> = Pin<Box<dyn ScopedFuture<'upper_bound, 'subject, Output = T> + 'subject>>;
Expand description

A non-Send boxed future whose lifetime is upper bounded.

Aliased Type§

struct ScopedLocalBoxFuture<'upper_bound, 'subject, T> {}

Trait Implementations§

source§

impl<'upper_bound, 'subject, T, Fut: Future<Output = T> + 'subject> From<Box<Fut>> for ScopedLocalBoxFuture<'upper_bound, 'subject, T>

source§

fn from(future: Box<Fut>) -> Self

Converts to this type from the input type.
source§

impl<'upper_bound, 'subject, T: 'subject> From<Box<dyn Future<Output = T> + 'subject>> for ScopedLocalBoxFuture<'upper_bound, 'subject, T>

source§

fn from(future: Box<dyn Future<Output = T> + 'subject>) -> Self

Converts to this type from the input type.
source§

impl<'upper_bound, 'subject, T, Fut: Future<Output = T> + 'subject> From<Pin<Box<Fut>>> for ScopedLocalBoxFuture<'upper_bound, 'subject, T>

source§

fn from(future: Pin<Box<Fut>>) -> Self

Converts to this type from the input type.
source§

impl<'upper_bound, 'subject, T: 'subject> From<Pin<Box<dyn Future<Output = T> + 'subject>>> for ScopedLocalBoxFuture<'upper_bound, 'subject, T>

source§

fn from(future: Pin<Box<dyn Future<Output = T> + 'subject>>) -> Self

Converts to this type from the input type.