#[repr(u16)]pub enum KeySubtype {
None = 0,
Private = 1,
Public = 2,
Pair = 3,
Secret = 4,
}Variants§
Trait Implementations§
Source§impl Clone for KeySubtype
impl Clone for KeySubtype
Source§fn clone(&self) -> KeySubtype
fn clone(&self) -> KeySubtype
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 KeySubtype
Source§impl Debug for KeySubtype
impl Debug for KeySubtype
Source§impl Default for KeySubtype
impl Default for KeySubtype
Source§fn default() -> KeySubtype
fn default() -> KeySubtype
Returns the “default value” for a type. Read more
impl Eq for KeySubtype
Source§impl From<KeySubtype> for u16
impl From<KeySubtype> for u16
Source§fn from(enum_value: KeySubtype) -> Self
fn from(enum_value: KeySubtype) -> Self
Converts to this type from the input type.
Source§impl PartialEq for KeySubtype
impl PartialEq for KeySubtype
Source§fn eq(&self, other: &KeySubtype) -> bool
fn eq(&self, other: &KeySubtype) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KeySubtype
Source§impl TryFrom<u16> for KeySubtype
impl TryFrom<u16> for KeySubtype
Source§type Error = TryFromPrimitiveError<KeySubtype>
type Error = TryFromPrimitiveError<KeySubtype>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for KeySubtype
impl TryFromPrimitive for KeySubtype
const NAME: &'static str = "KeySubtype"
type Primitive = u16
type Error = TryFromPrimitiveError<KeySubtype>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for KeySubtype
impl RefUnwindSafe for KeySubtype
impl Send for KeySubtype
impl Sync for KeySubtype
impl Unpin for KeySubtype
impl UnsafeUnpin for KeySubtype
impl UnwindSafe for KeySubtype
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.