pub enum Fetch<K, V, ER, S = RandomState>{
Fifo(DiversionFuture<RawFetchInner<Fifo<K, V>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<Fifo<K, V>, S, HashTableIndexer<E>>, ER>, FetchMark>),
S3Fifo(DiversionFuture<RawFetchInner<S3Fifo<K, V>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<S3Fifo<K, V>, S, HashTableIndexer<E>>, ER>, FetchMark>),
Lru(DiversionFuture<RawFetchInner<Lru<K, V>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<Lru<K, V>, S, HashTableIndexer<E>>, ER>, FetchMark>),
Lfu(DiversionFuture<RawFetchInner<Lfu<K, V>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<Lfu<K, V>, S, HashTableIndexer<E>>, ER>, FetchMark>),
}Expand description
A future that is used to get entry value from the remote storage for the in-memory cache.
Variants§
Fifo(DiversionFuture<RawFetchInner<Fifo<K, V>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<Fifo<K, V>, S, HashTableIndexer<E>>, ER>, FetchMark>)
A future that is used to get entry value from the remote storage for the in-memory FIFO cache.
S3Fifo(DiversionFuture<RawFetchInner<S3Fifo<K, V>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<S3Fifo<K, V>, S, HashTableIndexer<E>>, ER>, FetchMark>)
A future that is used to get entry value from the remote storage for the in-memory S3FIFO cache.
Lru(DiversionFuture<RawFetchInner<Lru<K, V>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<Lru<K, V>, S, HashTableIndexer<E>>, ER>, FetchMark>)
A future that is used to get entry value from the remote storage for the in-memory LRU cache.
Lfu(DiversionFuture<RawFetchInner<Lfu<K, V>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<Lfu<K, V>, S, HashTableIndexer<E>>, ER>, FetchMark>)
A future that is used to get entry value from the remote storage for the in-memory LFU cache.
Implementations§
Trait Implementations§
Source§impl<K, V, ER, S> From<DiversionFuture<RawFetchInner<Fifo<K, V>, ER, S, HashTableIndexer<Fifo<K, V>>>, Result<RawCacheEntry<Fifo<K, V>, S>, ER>, FetchMark>> for Fetch<K, V, ER, S>
impl<K, V, ER, S> From<DiversionFuture<RawFetchInner<Fifo<K, V>, ER, S, HashTableIndexer<Fifo<K, V>>>, Result<RawCacheEntry<Fifo<K, V>, S>, ER>, FetchMark>> for Fetch<K, V, ER, S>
Source§impl<K, V, ER, S> From<DiversionFuture<RawFetchInner<Lfu<K, V>, ER, S, HashTableIndexer<Lfu<K, V>>>, Result<RawCacheEntry<Lfu<K, V>, S>, ER>, FetchMark>> for Fetch<K, V, ER, S>
impl<K, V, ER, S> From<DiversionFuture<RawFetchInner<Lfu<K, V>, ER, S, HashTableIndexer<Lfu<K, V>>>, Result<RawCacheEntry<Lfu<K, V>, S>, ER>, FetchMark>> for Fetch<K, V, ER, S>
Source§impl<K, V, ER, S> From<DiversionFuture<RawFetchInner<Lru<K, V>, ER, S, HashTableIndexer<Lru<K, V>>>, Result<RawCacheEntry<Lru<K, V>, S>, ER>, FetchMark>> for Fetch<K, V, ER, S>
impl<K, V, ER, S> From<DiversionFuture<RawFetchInner<Lru<K, V>, ER, S, HashTableIndexer<Lru<K, V>>>, Result<RawCacheEntry<Lru<K, V>, S>, ER>, FetchMark>> for Fetch<K, V, ER, S>
Source§impl<K, V, ER, S> From<DiversionFuture<RawFetchInner<S3Fifo<K, V>, ER, S, HashTableIndexer<S3Fifo<K, V>>>, Result<RawCacheEntry<S3Fifo<K, V>, S>, ER>, FetchMark>> for Fetch<K, V, ER, S>
impl<K, V, ER, S> From<DiversionFuture<RawFetchInner<S3Fifo<K, V>, ER, S, HashTableIndexer<S3Fifo<K, V>>>, Result<RawCacheEntry<S3Fifo<K, V>, S>, ER>, FetchMark>> for Fetch<K, V, ER, S>
Source§impl<K, V, ER, S> Future for Fetch<K, V, ER, S>
impl<K, V, ER, S> Future for Fetch<K, V, ER, S>
Source§type Output = Result<CacheEntry<K, V, S>, ER>
type Output = Result<CacheEntry<K, V, S>, ER>
The type of value produced on completion.
impl<'pin, K, V, ER, S> Unpin for Fetch<K, V, ER, S>
Auto Trait Implementations§
impl<K, V, ER, S> Freeze for Fetch<K, V, ER, S>
impl<K, V, ER, S = RandomState> !RefUnwindSafe for Fetch<K, V, ER, S>
impl<K, V, ER, S> Send for Fetch<K, V, ER, S>where
ER: Send,
impl<K, V, ER, S> Sync for Fetch<K, V, ER, S>
impl<K, V, ER, S = RandomState> !UnwindSafe for Fetch<K, V, ER, 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> FutureExt for Twhere
T: Future,
impl<T> FutureExt for Twhere
T: Future,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more