pub struct NonceConfig {
pub check_uniqueness: bool,
pub max_tracked_nonces: usize,
pub secure_generation: bool,
pub nonce_size: usize,
}Expand description
Nonce management configuration
Fields§
§check_uniqueness: boolEnable nonce uniqueness checking
max_tracked_nonces: usizeMaximum number of nonces to track for uniqueness
secure_generation: boolEnable secure random nonce generation
nonce_size: usizeNonce size in bytes
Implementations§
Source§impl NonceConfig
impl NonceConfig
Sourcepub fn permissive() -> Self
pub fn permissive() -> Self
Create a permissive nonce configuration
Trait Implementations§
Source§impl Clone for NonceConfig
impl Clone for NonceConfig
Source§fn clone(&self) -> NonceConfig
fn clone(&self) -> NonceConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NonceConfig
impl Debug for NonceConfig
Source§impl Default for NonceConfig
impl Default for NonceConfig
Source§impl PartialEq for NonceConfig
impl PartialEq for NonceConfig
Source§fn eq(&self, other: &NonceConfig) -> bool
fn eq(&self, other: &NonceConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for NonceConfig
impl Eq for NonceConfig
impl StructuralPartialEq for NonceConfig
Auto Trait Implementations§
impl Freeze for NonceConfig
impl RefUnwindSafe for NonceConfig
impl Send for NonceConfig
impl Sync for NonceConfig
impl Unpin for NonceConfig
impl UnsafeUnpin for NonceConfig
impl UnwindSafe for NonceConfig
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