pub enum KeySetVersion {
Version00,
Version01,
}
Expand description
Keyset version
Variants§
Implementations§
Source§impl KeySetVersion
impl KeySetVersion
Sourcepub fn to_byte(&self) -> u8
pub fn to_byte(&self) -> u8
KeySetVersion
to byte
Sourcepub fn from_byte(byte: &u8) -> Result<KeySetVersion, Error>
pub fn from_byte(byte: &u8) -> Result<KeySetVersion, Error>
KeySetVersion
from byte
Trait Implementations§
Source§impl Clone for KeySetVersion
impl Clone for KeySetVersion
Source§fn clone(&self) -> KeySetVersion
fn clone(&self) -> KeySetVersion
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for KeySetVersion
impl Debug for KeySetVersion
Source§impl Display for KeySetVersion
impl Display for KeySetVersion
Source§impl Hash for KeySetVersion
impl Hash for KeySetVersion
Source§impl Ord for KeySetVersion
impl Ord for KeySetVersion
Source§fn cmp(&self, other: &KeySetVersion) -> Ordering
fn cmp(&self, other: &KeySetVersion) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for KeySetVersion
impl PartialEq for KeySetVersion
Source§impl PartialOrd for KeySetVersion
impl PartialOrd for KeySetVersion
impl Copy for KeySetVersion
impl Eq for KeySetVersion
impl StructuralPartialEq for KeySetVersion
Auto Trait Implementations§
impl Freeze for KeySetVersion
impl RefUnwindSafe for KeySetVersion
impl Send for KeySetVersion
impl Sync for KeySetVersion
impl Unpin for KeySetVersion
impl UnwindSafe for KeySetVersion
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