Enum foyer_memory::CacheEntry
source · pub enum CacheEntry<K, V, L, S = RandomState>{
Fifo(GenericCacheEntry<K, V, Fifo<(Arc<K>, Arc<V>)>, ArcKeyHashMapIndexer<K, FifoHandle<(Arc<K>, Arc<V>)>>, L, S>),
Lru(GenericCacheEntry<K, V, Lru<(Arc<K>, Arc<V>)>, ArcKeyHashMapIndexer<K, LruHandle<(Arc<K>, Arc<V>)>>, L, S>),
Lfu(GenericCacheEntry<K, V, Lfu<(Arc<K>, Arc<V>)>, ArcKeyHashMapIndexer<K, LfuHandle<(Arc<K>, Arc<V>)>>, L, S>),
S3Fifo(GenericCacheEntry<K, V, S3Fifo<(Arc<K>, Arc<V>)>, ArcKeyHashMapIndexer<K, S3FifoHandle<(Arc<K>, Arc<V>)>>, L, S>),
}Variants§
Fifo(GenericCacheEntry<K, V, Fifo<(Arc<K>, Arc<V>)>, ArcKeyHashMapIndexer<K, FifoHandle<(Arc<K>, Arc<V>)>>, L, S>)
Lru(GenericCacheEntry<K, V, Lru<(Arc<K>, Arc<V>)>, ArcKeyHashMapIndexer<K, LruHandle<(Arc<K>, Arc<V>)>>, L, S>)
Lfu(GenericCacheEntry<K, V, Lfu<(Arc<K>, Arc<V>)>, ArcKeyHashMapIndexer<K, LfuHandle<(Arc<K>, Arc<V>)>>, L, S>)
S3Fifo(GenericCacheEntry<K, V, S3Fifo<(Arc<K>, Arc<V>)>, ArcKeyHashMapIndexer<K, S3FifoHandle<(Arc<K>, Arc<V>)>>, L, S>)
Implementations§
source§impl<K, V, L, S> CacheEntry<K, V, L, S>
impl<K, V, L, S> CacheEntry<K, V, L, S>
Trait Implementations§
source§impl<K, V, L, S> Clone for CacheEntry<K, V, L, S>
impl<K, V, L, S> Clone for CacheEntry<K, V, L, S>
Auto Trait Implementations§
impl<K, V, L, S> Freeze for CacheEntry<K, V, L, S>
impl<K, V, L, S = RandomState> !RefUnwindSafe for CacheEntry<K, V, L, S>
impl<K, V, L, S> Send for CacheEntry<K, V, L, S>
impl<K, V, L, S> Sync for CacheEntry<K, V, L, S>
impl<K, V, L, S> Unpin for CacheEntry<K, V, L, S>
impl<K, V, L, S = RandomState> !UnwindSafe for CacheEntry<K, V, L, S>
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more