Trait actor_system_error::ResultExt
source · 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§
sourcefn map_actor_err<F, U>(self, f: F) -> Result<T, ActorSystemError<U, S>>where
F: FnOnce(A) -> U,
fn map_actor_err<F, U>(self, f: F) -> Result<T, ActorSystemError<U, S>>where
F: FnOnce(A) -> U,
Map actor error.
sourcefn map_system_err<F, U>(self, f: F) -> Result<T, ActorSystemError<A, U>>where
F: FnOnce(S) -> U,
fn map_system_err<F, U>(self, f: F) -> Result<T, ActorSystemError<A, U>>where
F: FnOnce(S) -> U,
Map system error.
sourcefn map_err_into<UA, US>(self) -> Result<T, ActorSystemError<UA, US>>
fn map_err_into<UA, US>(self) -> Result<T, ActorSystemError<UA, US>>
Map actor or system error.
Object Safety§
This trait is not object safe.