pub struct KillSwitchConfig {
pub enabled: bool,
pub reason: Option<String>,
pub auto_reset_secs: Option<u32>,
}Expand description
Kill switch configuration
Fields§
§enabled: boolWhether kill switch is currently active
reason: Option<String>Reason for activation
auto_reset_secs: Option<u32>Auto-reset after seconds (None = manual reset required)
Trait Implementations§
Source§impl Clone for KillSwitchConfig
impl Clone for KillSwitchConfig
Source§fn clone(&self) -> KillSwitchConfig
fn clone(&self) -> KillSwitchConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KillSwitchConfig
impl Debug for KillSwitchConfig
Source§impl Default for KillSwitchConfig
impl Default for KillSwitchConfig
Source§fn default() -> KillSwitchConfig
fn default() -> KillSwitchConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KillSwitchConfig
impl<'de> Deserialize<'de> for KillSwitchConfig
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
Auto Trait Implementations§
impl Freeze for KillSwitchConfig
impl RefUnwindSafe for KillSwitchConfig
impl Send for KillSwitchConfig
impl Sync for KillSwitchConfig
impl Unpin for KillSwitchConfig
impl UnsafeUnpin for KillSwitchConfig
impl UnwindSafe for KillSwitchConfig
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