futures_buffered

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