pub struct ActorStatus { /* private fields */ }Expand description
Represents the current status of an actor. See The Actoromicon for details.
Implementations§
Source§impl ActorStatus
impl ActorStatus
pub const ALARMING: ActorStatus
pub const INITIALIZING: ActorStatus
pub const NORMAL: ActorStatus
pub const TERMINATING: ActorStatus
Sourcepub fn with_details(&self, details: impl Display) -> Self
pub fn with_details(&self, details: impl Display) -> Self
Creates a new status with the same kind and provided details.
Sourcepub fn kind(&self) -> ActorStatusKind
pub fn kind(&self) -> ActorStatusKind
Returns the corresponding ActorStatusKind for this status.
Trait Implementations§
Source§impl Clone for ActorStatus
impl Clone for ActorStatus
Source§fn clone(&self) -> ActorStatus
fn clone(&self) -> ActorStatus
Returns a duplicate 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<'de> Deserialize<'de> for ActorStatus
impl<'de> Deserialize<'de> for ActorStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ActorStatus
impl Display for ActorStatus
Source§impl PartialEq for ActorStatus
impl PartialEq for ActorStatus
Source§impl Serialize for ActorStatus
impl Serialize 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