#[repr(u16)]pub enum SignatureVersion {
Latest = 0,
V1 = 1,
}
Expand description
The versions of the secret sharing scheme to use.
Variants§
Trait Implementations§
Source§impl Clone for SignatureVersion
impl Clone for SignatureVersion
Source§fn clone(&self) -> SignatureVersion
fn clone(&self) -> SignatureVersion
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 SignatureVersion
impl Debug for SignatureVersion
Source§impl Default for SignatureVersion
impl Default for SignatureVersion
Source§impl From<SignatureVersion> for u16
impl From<SignatureVersion> for u16
Source§fn from(enum_value: SignatureVersion) -> Self
fn from(enum_value: SignatureVersion) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SignatureVersion
impl PartialEq for SignatureVersion
Source§impl TryFrom<u16> for SignatureVersion
impl TryFrom<u16> for SignatureVersion
Source§type Error = TryFromPrimitiveError<SignatureVersion>
type Error = TryFromPrimitiveError<SignatureVersion>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for SignatureVersion
impl TryFromPrimitive for SignatureVersion
const NAME: &'static str = "SignatureVersion"
type Primitive = u16
type Error = TryFromPrimitiveError<SignatureVersion>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Source§impl Zeroize for SignatureVersion
impl Zeroize for SignatureVersion
impl Copy for SignatureVersion
impl Eq for SignatureVersion
impl StructuralPartialEq for SignatureVersion
Auto Trait Implementations§
impl Freeze for SignatureVersion
impl RefUnwindSafe for SignatureVersion
impl Send for SignatureVersion
impl Sync for SignatureVersion
impl Unpin for SignatureVersion
impl UnwindSafe for SignatureVersion
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.