pub struct LruCacheConfig {
pub max_size: usize,
pub ttl_secs: u64,
}Expand description
Serializable configuration for constructing an LruCache.
Fields§
§max_size: usize§ttl_secs: u64Trait Implementations§
Source§impl Clone for LruCacheConfig
impl Clone for LruCacheConfig
Source§fn clone(&self) -> LruCacheConfig
fn clone(&self) -> LruCacheConfig
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 LruCacheConfig
impl Debug for LruCacheConfig
Source§impl Default for LruCacheConfig
impl Default for LruCacheConfig
Source§impl<'de> Deserialize<'de> for LruCacheConfig
impl<'de> Deserialize<'de> for LruCacheConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LruCacheConfig
impl RefUnwindSafe for LruCacheConfig
impl Send for LruCacheConfig
impl Sync for LruCacheConfig
impl Unpin for LruCacheConfig
impl UnsafeUnpin for LruCacheConfig
impl UnwindSafe for LruCacheConfig
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