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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Counter64Builder
impl RefUnwindSafe for Counter64Builder
impl Send for Counter64Builder
impl Sync for Counter64Builder
impl Unpin for Counter64Builder
impl UnwindSafe for Counter64Builder
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