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>where
UA: From<A>,
US: From<S>,
pub fn map_into<UA, US>(self) -> ActorSystemError<UA, US>where UA: From<A>, US: From<S>,
Map actor or system error using From::from().
Trait Implementations§
source§impl<A: PartialEq, S: PartialEq> PartialEq<ActorSystemError<A, S>> for ActorSystemError<A, S>
impl<A: PartialEq, S: PartialEq> PartialEq<ActorSystemError<A, S>> for ActorSystemError<A, S>
source§fn eq(&self, other: &ActorSystemError<A, S>) -> bool
fn eq(&self, other: &ActorSystemError<A, S>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<A: Eq, S: Eq> Eq for ActorSystemError<A, S>
impl<A, S> StructuralEq for ActorSystemError<A, S>
impl<A, S> StructuralPartialEq for ActorSystemError<A, S>
Auto Trait Implementations§
impl<A, S> RefUnwindSafe for ActorSystemError<A, S>where A: RefUnwindSafe, S: RefUnwindSafe,
impl<A, S> Send for ActorSystemError<A, S>where A: Send, S: Send,
impl<A, S> Sync for ActorSystemError<A, S>where A: Sync, S: Sync,
impl<A, S> Unpin for ActorSystemError<A, S>where A: Unpin, S: Unpin,
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