[][src]Enum axiom::actors::ActorError

pub enum ActorError {
    ActorStopped,
    NameAlreadyUsed(String),
    RemoteNotImplemented,
}

Errors returned from actors and other parts of the actor system.

Variants

ActorStopped

Error sent when attempting to send to an actor that has already been stopped. A stopped actor cannot accept any more messages and is shut down. The holder of an ActorId to a stopped actor should throw away the ActorId as the actor can never be started again.

NameAlreadyUsed(String)

An error returned when an actor is already using a local name at the time the user tries to register that name for a new actor. The error contains the name that was attempted to be registered.

RemoteNotImplemented

Error Used for when an attempt is made to send a message to a remote actor. This error will be removed when remote actors are implemented.

Trait Implementations

impl PartialEq<ActorError> for ActorError[src]

impl Eq for ActorError[src]

impl Debug for ActorError[src]

impl Serialize for ActorError[src]

impl<'de> Deserialize<'de> for ActorError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ActorMessage for T where
    T: 'static + Serialize + DeserializeOwned + Sync + Send + Any + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]