pub struct StoreAuthConfig {
pub traffic_mode: TrafficRecordingMode,
pub batch_flush_interval: Duration,
pub batch_max_pending: usize,
pub cache_enabled: bool,
pub cache_ttl: Duration,
pub neg_cache_ttl: Duration,
}Expand description
Shared configuration consumed by StoreAuth.
Backend-specific configs (e.g. SqlAuthConfig) extract a StoreAuthConfig
internally when constructing the StoreAuth wrapper.
Fields§
§traffic_mode: TrafficRecordingModeTraffic recording mode.
batch_flush_interval: DurationBatch flush interval (only used with TrafficRecordingMode::Batched).
batch_max_pending: usizeMaximum pending traffic updates before a forced flush.
cache_enabled: boolWhether to enable authentication result caching.
cache_ttl: DurationPositive cache entry TTL.
neg_cache_ttl: DurationNegative cache entry TTL (invalid-hash rejection cache).
Set to Duration::ZERO to disable negative caching.
Trait Implementations§
Source§impl Clone for StoreAuthConfig
impl Clone for StoreAuthConfig
Source§fn clone(&self) -> StoreAuthConfig
fn clone(&self) -> StoreAuthConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 StoreAuthConfig
impl Debug for StoreAuthConfig
Auto Trait Implementations§
impl Freeze for StoreAuthConfig
impl RefUnwindSafe for StoreAuthConfig
impl Send for StoreAuthConfig
impl Sync for StoreAuthConfig
impl Unpin for StoreAuthConfig
impl UnsafeUnpin for StoreAuthConfig
impl UnwindSafe for StoreAuthConfig
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