pub struct MokaCacheConfig {
pub max_capacity: u64,
pub time_to_live: Duration,
pub time_to_idle: Duration,
}Expand description
Configuration for MokaCache
Fields§
§max_capacity: u64Max capacity of the cache
time_to_live: DurationTime to live for cache entries
time_to_idle: DurationTime to idle for cache entries
Trait Implementations§
Source§impl Clone for MokaCacheConfig
impl Clone for MokaCacheConfig
Source§fn clone(&self) -> MokaCacheConfig
fn clone(&self) -> MokaCacheConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MokaCacheConfig
impl Debug for MokaCacheConfig
Source§impl Default for MokaCacheConfig
impl Default for MokaCacheConfig
impl Copy for MokaCacheConfig
Auto Trait Implementations§
impl Freeze for MokaCacheConfig
impl RefUnwindSafe for MokaCacheConfig
impl Send for MokaCacheConfig
impl Sync for MokaCacheConfig
impl Unpin for MokaCacheConfig
impl UnwindSafe for MokaCacheConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)