pub trait ResultExt<T, A, S> {
    // Required methods
    fn map_actor_err<F, U>(self, f: F) -> Result<T, ActorSystemError<U, S>>
       where F: FnOnce(A) -> U;
    fn map_system_err<F, U>(self, f: F) -> Result<T, ActorSystemError<A, U>>
       where F: FnOnce(S) -> U;
    fn map_err_into<UA, US>(self) -> Result<T, ActorSystemError<UA, US>>
       where UA: From<A>,
             US: From<S>;
}
Expand description

Extension for Result around actor-system error.

Required Methods§

source

fn map_actor_err<F, U>(self, f: F) -> Result<T, ActorSystemError<U, S>>
where F: FnOnce(A) -> U,

Map actor error.

source

fn map_system_err<F, U>(self, f: F) -> Result<T, ActorSystemError<A, U>>
where F: FnOnce(S) -> U,

Map system error.

source

fn map_err_into<UA, US>(self) -> Result<T, ActorSystemError<UA, US>>
where UA: From<A>, US: From<S>,

Map actor or system error.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T, A, S> ResultExt<T, A, S> for Result<T, ActorSystemError<A, S>>

source§

fn map_actor_err<F, U>(self, f: F) -> Result<T, ActorSystemError<U, S>>
where F: FnOnce(A) -> U,

source§

fn map_system_err<F, U>(self, f: F) -> Result<T, ActorSystemError<A, U>>
where F: FnOnce(S) -> U,

source§

fn map_err_into<UA, US>(self) -> Result<T, ActorSystemError<UA, US>>
where UA: From<A>, US: From<S>,

Implementors§