pub struct CacheOptions {
pub max_links: Option<usize>,
pub time_to_live: Option<u64>,
}Expand description
What a CacheLinks enforces. Each is optional, and the default is neither.
Fields§
§max_links: Option<usize>How many links the store may hold, reached by evicting.
time_to_live: Option<u64>The milliseconds a link created here has before it comes due.
Trait Implementations§
Source§impl Clone for CacheOptions
impl Clone for CacheOptions
impl Copy for CacheOptions
Source§impl Debug for CacheOptions
impl Debug for CacheOptions
Source§impl Default for CacheOptions
impl Default for CacheOptions
impl Eq for CacheOptions
Source§impl PartialEq for CacheOptions
impl PartialEq for CacheOptions
impl StructuralPartialEq for CacheOptions
Auto Trait Implementations§
impl Freeze for CacheOptions
impl RefUnwindSafe for CacheOptions
impl Send for CacheOptions
impl Sync for CacheOptions
impl Unpin for CacheOptions
impl UnsafeUnpin for CacheOptions
impl UnwindSafe for CacheOptions
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