#[non_exhaustive]pub enum KeysPart {
Disabling,
Disabled,
}Expand description
Whether the signer is known to refuse the keys an enforcement covers.
§Examples
use stratum_node_core::KeysPart;
assert_eq!(KeysPart::Disabling.as_str(), "disabling");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.
Disabling
A disable is committed and not yet confirmed at the current key revision with no window open. An unreachable signer leaves it here.
Disabled
Every key is confirmed disabled with no window open.
Implementations§
Trait Implementations§
impl Copy for KeysPart
Source§impl<'de> Deserialize<'de> for KeysPart
impl<'de> Deserialize<'de> for KeysPart
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 KeysPart
Source§impl Ord for KeysPart
impl Ord for KeysPart
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 KeysPart
impl PartialOrd for KeysPart
impl StructuralPartialEq for KeysPart
Auto Trait Implementations§
impl Forget for KeysPart
impl Freeze for KeysPart
impl Move for KeysPart
impl RefUnwindSafe for KeysPart
impl Send for KeysPart
impl Sync for KeysPart
impl Unpin for KeysPart
impl UnsafeUnpin for KeysPart
impl UnwindSafe for KeysPart
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