Trait af_core::future::TryFutureExt[][src]

pub trait TryFutureExt<T, E>: Sized {
    fn map_err<F, M>(self, map: M) -> MapErr<Self, M>

Notable traits for MapErr<F, M>

impl<T, I, O, F, M> Future for MapErr<F, M> where
    F: Future<Output = Result<T, I>>,
    M: FnOnce(I) -> O, 
type Output = Result<T, O>;

    where
        M: FnOnce(E) -> F
, { ... } }

Extension methods for futures that return a result.

Provided methods

fn map_err<F, M>(self, map: M) -> MapErr<Self, M>

Notable traits for MapErr<F, M>

impl<T, I, O, F, M> Future for MapErr<F, M> where
    F: Future<Output = Result<T, I>>,
    M: FnOnce(I) -> O, 
type Output = Result<T, O>;
where
    M: FnOnce(E) -> F, 
[src]

Returns a new future that converts the error by applying a function.

Loading content...

Implementors

impl<F, T, E> TryFutureExt<T, E> for F where
    F: TryFuture<T, E>, 
[src]

Loading content...