pub type KitsuneHostResult<'a, T> = MustBoxFuture<'a, Result<T, Box<dyn Error + Sync + Send, Global>>>;
Expand description

A boxed future result with dynamic error type

Aliased Type§

struct KitsuneHostResult<'a, T> { /* private fields */ }

Implementations§

source§

impl<'lt, T> MustBoxFuture<'lt, T>

source

pub fn new<F>(f: F) -> MustBoxFuture<'lt, T> where F: 'lt + Future<Output = T> + Send,

Construct a new MustBoxFuture from a a raw unboxed future. Would be nice to impl From<F: Future> for MustBoxFuture, but blanket impls in rust core prevent this.

Trait Implementations§

source§

impl<'lt, T> Debug for MustBoxFuture<'lt, T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'lt, T> From<Pin<Box<dyn Future<Output = T> + Send + 'lt, Global>>> for MustBoxFuture<'lt, T>

source§

fn from( f: Pin<Box<dyn Future<Output = T> + Send + 'lt, Global>> ) -> MustBoxFuture<'lt, T>

Converts to this type from the input type.
source§

impl<'lt, T> Future for MustBoxFuture<'lt, T>

§

type Output = T

The type of value produced on completion.
source§

fn poll( self: Pin<&mut MustBoxFuture<'lt, T>>, cx: &mut Context<'_> ) -> Poll<<MustBoxFuture<'lt, T> as Future>::Output>

Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more