pub struct IdentityCacheSettings {
pub capacity: usize,
pub ttl_ns: Duration,
}Expand description
IdentityCacheSettings configures the capacity and entry lifetime for an IdentityCache.
Fields§
§capacity: usizeMaximum number of entries before the oldest are evicted.
ttl_ns: DurationTime-to-live for each entry in nanoseconds. Entries older than ttl_ns are not returned by IdentityCache::lookup.
Trait Implementations§
Source§impl Clone for IdentityCacheSettings
impl Clone for IdentityCacheSettings
Source§fn clone(&self) -> IdentityCacheSettings
fn clone(&self) -> IdentityCacheSettings
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 IdentityCacheSettings
impl Debug for IdentityCacheSettings
Auto Trait Implementations§
impl Freeze for IdentityCacheSettings
impl RefUnwindSafe for IdentityCacheSettings
impl Send for IdentityCacheSettings
impl Sync for IdentityCacheSettings
impl Unpin for IdentityCacheSettings
impl UnsafeUnpin for IdentityCacheSettings
impl UnwindSafe for IdentityCacheSettings
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