Enum ractor::actor::actor_cell::ActorStatus
source · #[repr(u8)]pub enum ActorStatus {
Unstarted = 0,
Starting = 1,
Running = 2,
Upgrading = 3,
Stopping = 4,
Stopped = 5,
}
Expand description
ActorStatus represents the status of an actor’s lifecycle
Variants§
Unstarted = 0
Created, but not yet started
Starting = 1
Starting
Running = 2
Executing (or waiting on messages)
Upgrading = 3
Upgrading
Stopping = 4
Stopping
Stopped = 5
Dead
Trait Implementations§
source§impl Clone for ActorStatus
impl Clone for ActorStatus
source§fn clone(&self) -> ActorStatus
fn clone(&self) -> ActorStatus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ActorStatus
impl Debug for ActorStatus
source§impl PartialEq for ActorStatus
impl PartialEq for ActorStatus
source§fn eq(&self, other: &ActorStatus) -> bool
fn eq(&self, other: &ActorStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ActorStatus
impl Eq for ActorStatus
impl StructuralPartialEq for ActorStatus
Auto Trait Implementations§
impl Freeze for ActorStatus
impl RefUnwindSafe for ActorStatus
impl Send for ActorStatus
impl Sync for ActorStatus
impl Unpin for ActorStatus
impl UnwindSafe for ActorStatus
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Message for T
impl<T> Message for T
source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage