pub enum ActorCommand {
Stop,
Pause,
Resume,
Status,
}Expand description
Commands that can be sent to any actor.
Variants§
Stop
Gracefully stop the actor.
Pause
Temporarily pause message processing.
Resume
Resume after a pause.
Status
Request an immediate status report.
Trait Implementations§
Source§impl Clone for ActorCommand
impl Clone for ActorCommand
Source§fn clone(&self) -> ActorCommand
fn clone(&self) -> ActorCommand
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 ActorCommand
impl Debug for ActorCommand
Source§impl<'de> Deserialize<'de> for ActorCommand
impl<'de> Deserialize<'de> for ActorCommand
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 PartialEq for ActorCommand
impl PartialEq for ActorCommand
Source§impl Serialize for ActorCommand
impl Serialize for ActorCommand
impl Eq for ActorCommand
impl StructuralPartialEq for ActorCommand
Auto Trait Implementations§
impl Freeze for ActorCommand
impl RefUnwindSafe for ActorCommand
impl Send for ActorCommand
impl Sync for ActorCommand
impl Unpin for ActorCommand
impl UnwindSafe for ActorCommand
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