#[repr(i32)]pub enum OwnerKeyTransitionKind {
Unspecified = 0,
Rotate = 1,
Recover = 2,
RecoveryPolicy = 3,
ClaimDeferredHuman = 4,
}Variants§
Implementations§
Source§impl OwnerKeyTransitionKind
impl OwnerKeyTransitionKind
Sourcepub const fn is_valid(value: i32) -> bool
pub const fn is_valid(value: i32) -> bool
Returns true if value is a variant of OwnerKeyTransitionKind.
Sourcepub fn from_i32(value: i32) -> Option<OwnerKeyTransitionKind>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<OwnerKeyTransitionKind>
Use the TryFrom<i32> implementation instead
Converts an i32 to a OwnerKeyTransitionKind, or None if value is not a valid variant.
Source§impl OwnerKeyTransitionKind
impl OwnerKeyTransitionKind
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for OwnerKeyTransitionKind
impl Clone for OwnerKeyTransitionKind
Source§fn clone(&self) -> OwnerKeyTransitionKind
fn clone(&self) -> OwnerKeyTransitionKind
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 moreimpl Copy for OwnerKeyTransitionKind
Source§impl Debug for OwnerKeyTransitionKind
impl Debug for OwnerKeyTransitionKind
Source§impl Default for OwnerKeyTransitionKind
impl Default for OwnerKeyTransitionKind
Source§fn default() -> OwnerKeyTransitionKind
fn default() -> OwnerKeyTransitionKind
Returns the “default value” for a type. Read more
impl Eq for OwnerKeyTransitionKind
Source§impl From<OwnerKeyTransitionKind> for i32
impl From<OwnerKeyTransitionKind> for i32
Source§fn from(value: OwnerKeyTransitionKind) -> i32
fn from(value: OwnerKeyTransitionKind) -> i32
Converts to this type from the input type.
Source§impl Hash for OwnerKeyTransitionKind
impl Hash for OwnerKeyTransitionKind
Source§impl Ord for OwnerKeyTransitionKind
impl Ord for OwnerKeyTransitionKind
Source§fn cmp(&self, other: &OwnerKeyTransitionKind) -> Ordering
fn cmp(&self, other: &OwnerKeyTransitionKind) -> Ordering
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
Source§impl PartialEq for OwnerKeyTransitionKind
impl PartialEq for OwnerKeyTransitionKind
Source§impl PartialOrd for OwnerKeyTransitionKind
impl PartialOrd for OwnerKeyTransitionKind
impl StructuralPartialEq for OwnerKeyTransitionKind
Source§impl TryFrom<i32> for OwnerKeyTransitionKind
impl TryFrom<i32> for OwnerKeyTransitionKind
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<OwnerKeyTransitionKind, UnknownEnumValue>
fn try_from(value: i32) -> Result<OwnerKeyTransitionKind, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for OwnerKeyTransitionKind
impl RefUnwindSafe for OwnerKeyTransitionKind
impl Send for OwnerKeyTransitionKind
impl Sync for OwnerKeyTransitionKind
impl Unpin for OwnerKeyTransitionKind
impl UnsafeUnpin for OwnerKeyTransitionKind
impl UnwindSafe for OwnerKeyTransitionKind
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