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> { /* private fields */ }

Trait Implementations§

1.33.0 · source§

impl<P> Deref for Pin<P>where P: Deref,

§

type Target = <P as Deref>::Target

The resulting type after dereferencing.
source§

fn deref(&self) -> &<P as Deref>::Target

Dereferences the value.
source§

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

impl<'upper_bound, 'subject, T: 'subject> From<Pin<Box<dyn Future<Output = T> + Send + 'subject, Global>>> 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.