pub struct KillSwitch(/* private fields */);Expand description
An operator’s runtime stop for a verification-gated route.
Cloneable, and every clone observes the same flag, so an operator can hold a handle while the router holds another. Engaging it takes effect on the next turn: no local attempt is produced and no verifier is consulted.
Distinct from ServingMode::Off, which is
the same behaviour chosen at construction. This one can be flipped without
rebuilding the route, which is what an incident needs.
Implementations§
Trait Implementations§
Source§impl Clone for KillSwitch
impl Clone for KillSwitch
Source§fn clone(&self) -> KillSwitch
fn clone(&self) -> KillSwitch
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 KillSwitch
impl Debug for KillSwitch
Source§impl Default for KillSwitch
impl Default for KillSwitch
Source§fn default() -> KillSwitch
fn default() -> KillSwitch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for KillSwitch
impl RefUnwindSafe for KillSwitch
impl Send for KillSwitch
impl Sync for KillSwitch
impl Unpin for KillSwitch
impl UnsafeUnpin for KillSwitch
impl UnwindSafe for KillSwitch
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