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> { /* 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> + 'subject> From<Box<Fut, Global>> 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, Global>> 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> + 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.