pub struct Counter64 { /* private fields */ }
Expand description
Counter64
is an implementation of the NonceSequence
trait.
The internal state of a Counter64
is a 64-bit unsigned counter that
increments on each call to advance
and an optional 4-byte identifier. Counter and identifier
values are used to construct each nonce.
A limit can be set on the number of nonces allowed to be generated, by default this limit is
u64::MAX
.
See Section 3.2 of RFC 5116.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Counter64
impl RefUnwindSafe for Counter64
impl Send for Counter64
impl Sync for Counter64
impl Unpin for Counter64
impl UnwindSafe for Counter64
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