pub enum EvictionStrategy {
LRU,
LFU,
FIFO,
TTL,
}Expand description
Cache eviction strategies (copied from SolverCache for now)
Variants§
LRU
Least Recently Used
LFU
Least Frequently Used
FIFO
First In, First Out
TTL
Time-based expiration only
Trait Implementations§
Source§impl Clone for EvictionStrategy
impl Clone for EvictionStrategy
Source§fn clone(&self) -> EvictionStrategy
fn clone(&self) -> EvictionStrategy
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 EvictionStrategy
impl Debug for EvictionStrategy
Source§impl<'de> Deserialize<'de> for EvictionStrategy
impl<'de> Deserialize<'de> for EvictionStrategy
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
Source§impl PartialEq for EvictionStrategy
impl PartialEq for EvictionStrategy
Source§impl Serialize for EvictionStrategy
impl Serialize for EvictionStrategy
impl StructuralPartialEq for EvictionStrategy
Auto Trait Implementations§
impl Freeze for EvictionStrategy
impl RefUnwindSafe for EvictionStrategy
impl Send for EvictionStrategy
impl Sync for EvictionStrategy
impl Unpin for EvictionStrategy
impl UnsafeUnpin for EvictionStrategy
impl UnwindSafe for EvictionStrategy
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