pub struct AuthnCacheOptions {
pub ttl: Duration,
pub max_entries: usize,
}Expand description
Configuration for AuthnCache.
Fields§
§ttl: DurationTTL for cached authentication results. Default 30 s — matches
PermissionCacheOptions::positive_ttl.
The effective entry lifetime is min(ttl, token_exp - now): a cached
authentication never outlives its token.
max_entries: usizeMaximum number of cache entries before eviction kicks in.
Trait Implementations§
Source§impl Clone for AuthnCacheOptions
impl Clone for AuthnCacheOptions
Source§fn clone(&self) -> AuthnCacheOptions
fn clone(&self) -> AuthnCacheOptions
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 AuthnCacheOptions
impl Debug for AuthnCacheOptions
Auto Trait Implementations§
impl Freeze for AuthnCacheOptions
impl RefUnwindSafe for AuthnCacheOptions
impl Send for AuthnCacheOptions
impl Sync for AuthnCacheOptions
impl Unpin for AuthnCacheOptions
impl UnsafeUnpin for AuthnCacheOptions
impl UnwindSafe for AuthnCacheOptions
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