#[repr(u16)]pub enum SecretSharingVersion {
Latest = 0,
V1 = 1,
}Expand description
The versions of the secret sharing scheme to use.
Variants§
Trait Implementations§
Source§impl Clone for SecretSharingVersion
impl Clone for SecretSharingVersion
Source§fn clone(&self) -> SecretSharingVersion
fn clone(&self) -> SecretSharingVersion
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 SecretSharingVersion
Source§impl Debug for SecretSharingVersion
impl Debug for SecretSharingVersion
Source§impl Default for SecretSharingVersion
impl Default for SecretSharingVersion
Source§fn default() -> SecretSharingVersion
fn default() -> SecretSharingVersion
Returns the “default value” for a type. Read more
impl Eq for SecretSharingVersion
Source§impl From<SecretSharingVersion> for u16
impl From<SecretSharingVersion> for u16
Source§fn from(enum_value: SecretSharingVersion) -> Self
fn from(enum_value: SecretSharingVersion) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SecretSharingVersion
impl PartialEq for SecretSharingVersion
Source§fn eq(&self, other: &SecretSharingVersion) -> bool
fn eq(&self, other: &SecretSharingVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SecretSharingVersion
Source§impl TryFrom<u16> for SecretSharingVersion
impl TryFrom<u16> for SecretSharingVersion
Source§type Error = TryFromPrimitiveError<SecretSharingVersion>
type Error = TryFromPrimitiveError<SecretSharingVersion>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for SecretSharingVersion
impl TryFromPrimitive for SecretSharingVersion
const NAME: &'static str = "SecretSharingVersion"
type Primitive = u16
type Error = TryFromPrimitiveError<SecretSharingVersion>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for SecretSharingVersion
impl RefUnwindSafe for SecretSharingVersion
impl Send for SecretSharingVersion
impl Sync for SecretSharingVersion
impl Unpin for SecretSharingVersion
impl UnsafeUnpin for SecretSharingVersion
impl UnwindSafe for SecretSharingVersion
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.