[][src]Enum axiom::actors::SystemMsg

pub enum SystemMsg {
    Start,
    Stop,
    Stopped(ActorId),
}

An enum containing messages that are sent to actors by the actor system itself and are universal to all actors.

Variants

Start

A message that is sent by the system and guaranteed to be the first message that the actor receives in its lifetime.

Stop

A message that instructs an actor to shut down. The actor receiving this message should shut down all open file handles and any other resources and return a Status::Stop from the call to the message processor. Regardless of the return from the actor's message processor the actor will be shut down by the actor system.

Stopped(ActorId)

A message sent to an actor when a monitored actor is stopped and thus not able to process additional messages. The value is the aid of the actor that stopped.

Trait Implementations

impl PartialEq<SystemMsg> for SystemMsg[src]

impl Eq for SystemMsg[src]

impl Debug for SystemMsg[src]

impl Serialize for SystemMsg[src]

impl<'de> Deserialize<'de> for SystemMsg[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]