pub struct Counter32Builder { /* private fields */ }Expand description
NonceSequenceBuilder facilitates the building of a Counter32.
Implementations§
Source§impl Counter32Builder
impl Counter32Builder
Sourcepub fn new() -> Counter32Builder
pub fn new() -> Counter32Builder
Constructs a Counter32Builder with all default values.
Sourcepub fn identifier<T: Into<[u8; 8]>>(self, identifier: T) -> Counter32Builder
pub fn identifier<T: Into<[u8; 8]>>(self, identifier: T) -> Counter32Builder
The identifier for the Counter32 - this value helps differentiate nonce
sequences.
Sourcepub fn counter(self, counter: u32) -> Counter32Builder
pub fn counter(self, counter: u32) -> Counter32Builder
The starting counter value for the Counter32.
Sourcepub fn limit(self, limit: u32) -> Counter32Builder
pub fn limit(self, limit: u32) -> Counter32Builder
The limit for the number of nonces the Counter32 can produce.