Enum elfo_core::ActorStartCause
source · #[non_exhaustive]pub enum ActorStartCause {
GroupMounted,
OnMessage,
Restarted,
}
Expand description
An enum representing various causes for an actor to start.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
GroupMounted
The actor started because its group was mounted.
OnMessage
The actor started in response to a message.
Restarted
The actor started due to the restart policy.
Implementations§
source§impl ActorStartCause
impl ActorStartCause
pub fn is_group_mounted(&self) -> bool
pub fn is_restarted(&self) -> bool
pub fn is_on_message(&self) -> bool
Trait Implementations§
source§impl Clone for ActorStartCause
impl Clone for ActorStartCause
source§fn clone(&self) -> ActorStartCause
fn clone(&self) -> ActorStartCause
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 moreAuto Trait Implementations§
impl Freeze for ActorStartCause
impl RefUnwindSafe for ActorStartCause
impl Send for ActorStartCause
impl Sync for ActorStartCause
impl Unpin for ActorStartCause
impl UnwindSafe for ActorStartCause
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