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
Sourcepub fn from_proto_i32(value: i32) -> Result<KeySetVersion, Error>
pub fn from_proto_i32(value: i32) -> Result<KeySetVersion, Error>
KeySetVersion from proto value
Sourcepub fn to_proto_i32(&self) -> i32
pub fn to_proto_i32(&self) -> i32
KeySetVersion to proto value
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§fn clone_from(&mut self, source: &Self)
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 UnsafeUnpin 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
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.