pub enum ControlOp {
Activate,
Deactivate,
}Expand description
Which way to drive a node. Higher-level verbs fold onto these two:
start/resume → Activate, stop/pause → Deactivate. The concrete
mechanism (respawn vs resume vs leave-to-pool) is then chosen per node Mode
by the supervisor when it applies the command (Supervisor::apply_control).
Variants§
Activate
Bring the node up (start a stopped Terminate node, resume a Pause node).
Deactivate
Take the node down (and its dependents, per the graph).
Trait Implementations§
impl Copy for ControlOp
impl Eq for ControlOp
impl StructuralPartialEq for ControlOp
Auto Trait Implementations§
impl Freeze for ControlOp
impl RefUnwindSafe for ControlOp
impl Send for ControlOp
impl Sync for ControlOp
impl Unpin for ControlOp
impl UnsafeUnpin for ControlOp
impl UnwindSafe for ControlOp
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