pub struct SaltCounter(/* private fields */);Expand description
Thread-safe salt counter for shared use across multiple encryptions.
Implementations§
Source§impl SaltCounter
impl SaltCounter
Sourcepub fn from_value(value: u64) -> Self
pub fn from_value(value: u64) -> Self
Create a salt counter initialized to a specific value.
This is primarily for testing purposes.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SaltCounter
impl RefUnwindSafe for SaltCounter
impl Send for SaltCounter
impl Sync for SaltCounter
impl Unpin for SaltCounter
impl UnwindSafe for SaltCounter
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