Enum ActorSystemError

Source
pub enum ActorSystemError<A, S> {
    Actor(A),
    System(S),
}
Expand description

Actor or system error.

Variants§

§

Actor(A)

§

System(S)

Implementations§

Source§

impl<A, S> ActorSystemError<A, S>

Source

pub fn map_actor<F, U>(self, f: F) -> ActorSystemError<U, S>
where F: FnOnce(A) -> U,

Map actor error.

Source

pub fn map_system<F, U>(self, f: F) -> ActorSystemError<A, U>
where F: FnOnce(S) -> U,

Map system error.

Source

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: Debug, S: Debug> Debug for ActorSystemError<A, S>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<A, S> Display for ActorSystemError<A, S>
where A: Display, S: Display,

Source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<A: PartialEq, S: PartialEq> PartialEq for ActorSystemError<A, S>

Source§

fn eq(&self, other: &ActorSystemError<A, S>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<A: Eq, S: Eq> Eq for ActorSystemError<A, S>

Source§

impl<A, S> StructuralPartialEq for ActorSystemError<A, S>

Auto Trait Implementations§

§

impl<A, S> Freeze for ActorSystemError<A, S>
where A: Freeze, S: Freeze,

§

impl<A, S> RefUnwindSafe for ActorSystemError<A, S>

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.