#[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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SecretSharingVersion
impl Debug for SecretSharingVersion
Source§impl Default for SecretSharingVersion
impl Default 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§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>>
Source§impl Zeroize for SecretSharingVersion
impl Zeroize for SecretSharingVersion
impl Copy for SecretSharingVersion
impl Eq for SecretSharingVersion
impl StructuralPartialEq for SecretSharingVersion
Auto Trait Implementations§
impl Freeze for SecretSharingVersion
impl RefUnwindSafe for SecretSharingVersion
impl Send for SecretSharingVersion
impl Sync for SecretSharingVersion
impl Unpin 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
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.