pub enum ActorState {
Creating,
Running,
Suspended,
Stopped,
Failed,
}Expand description
State of an actor.
Variants§
Creating
Actor is being created
Running
Actor is running and processing messages
Suspended
Actor is paused (not processing messages)
Stopped
Actor is stopped
Failed
Actor failed with an error
Implementations§
Trait Implementations§
Source§impl Clone for ActorState
impl Clone for ActorState
Source§fn clone(&self) -> ActorState
fn clone(&self) -> ActorState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ActorState
Source§impl Debug for ActorState
impl Debug for ActorState
Source§impl Default for ActorState
impl Default for ActorState
Source§fn default() -> ActorState
fn default() -> ActorState
Returns the “default value” for a type. Read more
impl Eq for ActorState
Source§impl Hash for ActorState
impl Hash for ActorState
Source§impl PartialEq for ActorState
impl PartialEq for ActorState
impl StructuralPartialEq for ActorState
Auto Trait Implementations§
impl Freeze for ActorState
impl RefUnwindSafe for ActorState
impl Send for ActorState
impl Sync for ActorState
impl Unpin for ActorState
impl UnsafeUnpin for ActorState
impl UnwindSafe for ActorState
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