#[non_exhaustive]pub enum KeyStatus {
Enabled,
Disabled,
Destroyed,
}Expand description
The state of an installation’s key as the node wants it: enabled
when it has no disable reason, else disabled, or destroyed.
§Examples
use stratum_node_core::KeyStatus;
assert_eq!(KeyStatus::Enabled.to_string(), "enabled");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.
Enabled
No disable reason.
Disabled
At least one disable reason.
Destroyed
Destroyed at the signer, or marked for destruction.
Implementations§
Trait Implementations§
impl Copy for KeyStatus
Source§impl<'de> Deserialize<'de> for KeyStatus
impl<'de> Deserialize<'de> for KeyStatus
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for KeyStatus
Source§impl Ord for KeyStatus
impl Ord for KeyStatus
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for KeyStatus
impl PartialOrd for KeyStatus
impl StructuralPartialEq for KeyStatus
Auto Trait Implementations§
impl Forget for KeyStatus
impl Freeze for KeyStatus
impl Move for KeyStatus
impl RefUnwindSafe for KeyStatus
impl Send for KeyStatus
impl Sync for KeyStatus
impl Unpin for KeyStatus
impl UnsafeUnpin for KeyStatus
impl UnwindSafe for KeyStatus
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