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