[][src]Enum stakker::StopCause

pub enum StopCause {
    Stopped,
    Failed(Box<dyn Error>),
    Killed(Box<dyn Error>),
    Dropped,
    Lost,
}

Indicates reason for actor termination

In case of failure, this is not intended to provide a full backtrace of actor failures leading up to this failure. It only provides information on the immediate failure that occurred, to allow the actor receiving this indication to make a decision on what to do next.

To trace back exactly what happened, enable the logger feature and record the Open and Close events.

Variants

Stopped

Actor terminated using Cx::stop

Failed(Box<dyn Error>)

Actor failed using Cx::fail

Killed(Box<dyn Error>)

Actor was killed through ActorOwn::kill

Dropped

Last owning reference to the actor was dropped

Lost

Lost the connection to a remote actor's host. (This will be used when remote actors are implemented.)

Implementations

impl StopCause[src]

pub fn has_error(&self) -> bool[src]

Test whether this the actor died with an associated error, i.e. Failed or Killed.

Trait Implementations

impl Debug for StopCause[src]

impl Display for StopCause[src]

Auto Trait Implementations

impl !RefUnwindSafe for StopCause

impl !Send for StopCause

impl !Sync for StopCause

impl Unpin for StopCause

impl !UnwindSafe for StopCause

Blanket Implementations

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

impl<T> Any for T where
    T: Any
[src]

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

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

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[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.