scoped_futures

Type Alias ScopedBoxFuture

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

A boxed future whose lifetime is upper bounded.

Aliased Type§

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

Trait Implementations§

source§

impl<'upper_bound, 'subject, T, Fut: Future<Output = T> + Send + 'subject> From<Box<Fut>> for ScopedBoxFuture<'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> + Send + 'subject>> for ScopedBoxFuture<'upper_bound, 'subject, T>

source§

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

Converts to this type from the input type.
source§

impl<'upper_bound, 'subject, T, Fut: Future<Output = T> + Send + 'subject> From<Pin<Box<Fut>>> for ScopedBoxFuture<'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> + Send + 'subject>>> for ScopedBoxFuture<'upper_bound, 'subject, T>

source§

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

Converts to this type from the input type.