pub enum ActorStatus {
Unknown,
Created,
Initializing,
Client,
Idle,
Processing(SystemTime, Option<(String, Option<String>)>),
Saving(SystemTime),
Loading(SystemTime),
Stopping,
Stopped,
Failed(String),
}
Expand description
The runtime status of an actor.
Variants§
Unknown
The actor status is unknown.
Created
The actor was created, but not yet started.
Initializing
The actor is initializing. It is not yet ready to receive messages.
Client
The actor is in “client” state: the user is managing the actor’s mailboxes manually.
Idle
The actor is ready to receive messages, but is currently idle.
Processing(SystemTime, Option<(String, Option<String>)>)
The actor has been processing a message, beginning at the specified instant. The message handler and arm is included. TODO: we shoudl use interned representations here, so we don’t copy strings willy-nilly.
Saving(SystemTime)
The actor has been saving its state.
Loading(SystemTime)
The actor has been loading its state.
Stopping
The actor is stopping. It is draining messages.
Stopped
The actor is stopped. It is no longer processing messages.
Failed(String)
The actor failed with the provided actor error formatted in string representation.
Trait Implementations§
Source§impl Clone for ActorStatus
impl Clone for ActorStatus
Source§fn clone(&self) -> ActorStatus
fn clone(&self) -> ActorStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ActorStatus
impl Debug for ActorStatus
Source§impl<'de> Deserialize<'de> for ActorStatus
impl<'de> Deserialize<'de> for ActorStatus
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ActorStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ActorStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Display for ActorStatus
impl Display for ActorStatus
Source§impl Named for ActorStatus
impl Named for ActorStatus
Source§fn typename() -> &'static str
fn typename() -> &'static str
Source§fn typehash() -> u64
fn typehash() -> u64
Source§fn arm(&self) -> Option<&'static str>
fn arm(&self) -> Option<&'static str>
Source§fn typeid() -> TypeId
fn typeid() -> TypeId
Source§impl PartialEq for ActorStatus
impl PartialEq for ActorStatus
Source§impl Serialize for ActorStatus
impl Serialize for ActorStatus
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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§
§impl<T> AnySync for T
impl<T> AnySync for T
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
Source§impl<T> Checkpointable for Twhere
T: RemoteMessage + Clone,
impl<T> Checkpointable for Twhere
T: RemoteMessage + Clone,
Source§type State = T
type State = T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<A, M> Handler<IndexedErasedUnbound<M>> for A
impl<A, M> Handler<IndexedErasedUnbound<M>> for A
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more