pub struct RecoveryAttemptId(/* private fields */);Expand description
A stable nonzero identity reused by every retry of one offline total-voter recovery attempt.
Implementations§
Source§impl RecoveryAttemptId
impl RecoveryAttemptId
pub fn new(value: u128) -> Result<Self, IdentityError>
pub fn from_be_bytes(bytes: [u8; 16]) -> Result<Self, IdentityError>
pub const fn get(self) -> u128
pub const fn to_be_bytes(self) -> [u8; 16]
pub fn checked_next(self) -> Option<Self>
Trait Implementations§
Source§impl Clone for RecoveryAttemptId
impl Clone for RecoveryAttemptId
impl Copy for RecoveryAttemptId
Source§impl Debug for RecoveryAttemptId
impl Debug for RecoveryAttemptId
Source§impl<'de> Deserialize<'de> for RecoveryAttemptId
impl<'de> Deserialize<'de> for RecoveryAttemptId
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RecoveryAttemptId
impl Display for RecoveryAttemptId
impl Eq for RecoveryAttemptId
Source§impl FromStr for RecoveryAttemptId
impl FromStr for RecoveryAttemptId
Source§impl Hash for RecoveryAttemptId
impl Hash for RecoveryAttemptId
Source§impl Ord for RecoveryAttemptId
impl Ord for RecoveryAttemptId
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RecoveryAttemptId
impl PartialEq for RecoveryAttemptId
Source§impl PartialOrd for RecoveryAttemptId
impl PartialOrd for RecoveryAttemptId
Source§impl Serialize for RecoveryAttemptId
impl Serialize for RecoveryAttemptId
impl StructuralPartialEq for RecoveryAttemptId
Auto Trait Implementations§
impl Freeze for RecoveryAttemptId
impl RefUnwindSafe for RecoveryAttemptId
impl Send for RecoveryAttemptId
impl Sync for RecoveryAttemptId
impl Unpin for RecoveryAttemptId
impl UnsafeUnpin for RecoveryAttemptId
impl UnwindSafe for RecoveryAttemptId
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