pub enum ControlMessage {
Pause,
Resume,
Stop,
Restart,
ResetCircuitBreaker,
}Expand description
Control messages sent to supervised tasks
Variants§
Pause
Pause the task (if supported)
Resume
Resume a paused task
Stop
Stop the task permanently
Restart
Force an immediate restart
ResetCircuitBreaker
Reset the task’s circuit breaker
Trait Implementations§
Source§impl Clone for ControlMessage
impl Clone for ControlMessage
impl Copy for ControlMessage
Source§impl Debug for ControlMessage
impl Debug for ControlMessage
Source§impl<'de> Deserialize<'de> for ControlMessage
impl<'de> Deserialize<'de> for ControlMessage
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 ControlMessage
impl PartialEq for ControlMessage
Source§impl Serialize for ControlMessage
impl Serialize for ControlMessage
impl StructuralPartialEq for ControlMessage
Auto Trait Implementations§
impl Freeze for ControlMessage
impl RefUnwindSafe for ControlMessage
impl Send for ControlMessage
impl Sync for ControlMessage
impl Unpin for ControlMessage
impl UnsafeUnpin for ControlMessage
impl UnwindSafe for ControlMessage
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