pub enum StopCause {
Stopped,
Failed(Box<dyn Error>),
Killed(Box<dyn Error>),
Dropped,
Lost,
}
Expand description
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§
Trait Implementations§
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§
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