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