pub struct IncreasingNonceProvider { /* private fields */ }
Expand description
A nonce generator that gives the current epoch in milliseconds, except when called in the same millisecond, in which case it increases the nonce by 1 so no duplicates are ever returned.
You may wish to consider setting a nonce window
on your API key to allow for out of order nonces
within several seconds of each other. Consult the Kraken docs for instructions and trade-offs.
Implementations§
Trait Implementations§
Source§impl Clone for IncreasingNonceProvider
impl Clone for IncreasingNonceProvider
Source§fn clone(&self) -> IncreasingNonceProvider
fn clone(&self) -> IncreasingNonceProvider
Returns a copy 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 IncreasingNonceProvider
impl Debug for IncreasingNonceProvider
Source§impl Default for IncreasingNonceProvider
impl Default for IncreasingNonceProvider
impl Copy for IncreasingNonceProvider
Auto Trait Implementations§
impl Freeze for IncreasingNonceProvider
impl RefUnwindSafe for IncreasingNonceProvider
impl Send for IncreasingNonceProvider
impl Sync for IncreasingNonceProvider
impl Unpin for IncreasingNonceProvider
impl UnwindSafe for IncreasingNonceProvider
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