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: ?Sized + Future<Output = Result<T, E>>> TryFuture for F

Source§

type Ok = T

Source§

type Err = E