pub struct Counter32 { /* private fields */ }
Expand description
Counter32 is an implementation of the NonceSequence trait.
The internal state of a Counter32 is a 32-bit unsigned counter that
increments on each call to advance and an optional 8-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
u32::MAX.
See Section 3.2 of RFC 5116.
Provides the internal identifier.
Provides the current internal counter value.
Provides the current counter indicating how many nonces have been generated.
Provides the limit on the number of nonces allowed to be generate.
Returns the next nonce in the sequence.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.