pub enum ActorSystemError<A, S> {
Actor(A),
System(S),
}
Expand description
Actor or system error.
Variants§
Implementations§
Source§impl<A, S> ActorSystemError<A, S>
impl<A, S> ActorSystemError<A, S>
Sourcepub fn map_actor<F, U>(self, f: F) -> ActorSystemError<U, S>where
F: FnOnce(A) -> U,
pub fn map_actor<F, U>(self, f: F) -> ActorSystemError<U, S>where
F: FnOnce(A) -> U,
Map actor error.
Sourcepub fn map_system<F, U>(self, f: F) -> ActorSystemError<A, U>where
F: FnOnce(S) -> U,
pub fn map_system<F, U>(self, f: F) -> ActorSystemError<A, U>where
F: FnOnce(S) -> U,
Map system error.
Sourcepub fn map_into<UA, US>(self) -> ActorSystemError<UA, US>
pub fn map_into<UA, US>(self) -> ActorSystemError<UA, US>
Map actor or system error using From::from()
.
Trait Implementations§
Source§impl<A, S> Display for ActorSystemError<A, S>
impl<A, S> Display for ActorSystemError<A, S>
impl<A: Eq, S: Eq> Eq for ActorSystemError<A, S>
impl<A, S> StructuralPartialEq for ActorSystemError<A, S>
Auto Trait Implementations§
impl<A, S> Freeze for ActorSystemError<A, S>
impl<A, S> RefUnwindSafe for ActorSystemError<A, S>where
A: RefUnwindSafe,
S: RefUnwindSafe,
impl<A, S> Send for ActorSystemError<A, S>
impl<A, S> Sync for ActorSystemError<A, S>
impl<A, S> Unpin for ActorSystemError<A, S>
impl<A, S> UnwindSafe for ActorSystemError<A, S>where
A: UnwindSafe,
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more