#[non_exhaustive]pub enum ControlOp {
Activate,
Deactivate,
Restart,
}Expand description
A control request issued to the supervisor for a node.
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.
Activate
Request that the node be activated.
Deactivate
Request that the node be deactivated.
Restart
Request that the node be restarted.
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