pub struct IncreasingNonce { /* private fields */ }Expand description
A nonce provider that generates strictly increasing nonces based on time.
Uses microseconds since UNIX epoch, with an atomic counter to ensure uniqueness even for requests made in the same microsecond.
Implementations§
Trait Implementations§
Source§impl Default for IncreasingNonce
impl Default for IncreasingNonce
Source§impl NonceProvider for IncreasingNonce
impl NonceProvider for IncreasingNonce
Source§fn next_nonce(&self) -> u64
fn next_nonce(&self) -> u64
Generate the next nonce value. Read more
Auto Trait Implementations§
impl !Freeze for IncreasingNonce
impl RefUnwindSafe for IncreasingNonce
impl Send for IncreasingNonce
impl Sync for IncreasingNonce
impl Unpin for IncreasingNonce
impl UnwindSafe for IncreasingNonce
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