TryFuture

Trait TryFuture 

Source
pub trait TryFuture: Future<Output = Result<Self::Ok, Self::Err>> + Sealed {
    type Ok;
    type Err;
}
Expand description

A convenience for futures that return Result values that includes a variety of adapters tailored to such futures.

This is futures::TryFuture except it’s stricter on the future super-trait.

Required Associated Types§

Implementors§

Source§

impl<T, E, F> TryFuture for F
where F: Future<Output = Result<T, E>> + ?Sized,

Source§

type Ok = T

Source§

type Err = E