#[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 copy 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§fn eq(&self, other: &SecretSharingVersion) -> bool
fn eq(&self, other: &SecretSharingVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u16> for SecretSharingVersion
impl TryFrom<u16> for SecretSharingVersion
§type Error = TryFromPrimitiveError<SecretSharingVersion>
type Error = TryFromPrimitiveError<SecretSharingVersion>
The type returned in the event of a conversion error.
source§impl Zeroize for SecretSharingVersion
impl Zeroize for SecretSharingVersion
impl Copy for SecretSharingVersion
impl Eq for SecretSharingVersion
impl StructuralEq for SecretSharingVersion
impl StructuralPartialEq for SecretSharingVersion
Auto Trait Implementations§
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