pub enum Fetch<K, V, ER, S = DefaultHasher, P = CacheProperties>{
Fifo(DiversionFuture<RawFetchInner<Fifo<K, V, P>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<Fifo<K, V, P>, S, HashTableIndexer<E>>, ER>, FetchContext>),
S3Fifo(DiversionFuture<RawFetchInner<S3Fifo<K, V, P>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<S3Fifo<K, V, P>, S, HashTableIndexer<E>>, ER>, FetchContext>),
Lru(DiversionFuture<RawFetchInner<Lru<K, V, P>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<Lru<K, V, P>, S, HashTableIndexer<E>>, ER>, FetchContext>),
Lfu(DiversionFuture<RawFetchInner<Lfu<K, V, P>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<Lfu<K, V, P>, S, HashTableIndexer<E>>, ER>, FetchContext>),
Sieve(DiversionFuture<RawFetchInner<Sieve<K, V, P>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<Sieve<K, V, P>, S, HashTableIndexer<E>>, ER>, FetchContext>),
}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, P>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<Fifo<K, V, P>, S, HashTableIndexer<E>>, ER>, FetchContext>)
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, P>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<S3Fifo<K, V, P>, S, HashTableIndexer<E>>, ER>, FetchContext>)
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, P>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<Lru<K, V, P>, S, HashTableIndexer<E>>, ER>, FetchContext>)
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, P>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<Lfu<K, V, P>, S, HashTableIndexer<E>>, ER>, FetchContext>)
A future that is used to get entry value from the remote storage for the in-memory LFU cache.
Sieve(DiversionFuture<RawFetchInner<Sieve<K, V, P>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<Sieve<K, V, P>, S, HashTableIndexer<E>>, ER>, FetchContext>)
A future that is used to get entry value from the remote storage for the in-memory sieve cache.
Implementations§
Trait Implementations§
Source§impl<K, V, ER, S, P> From<DiversionFuture<RawFetchInner<Fifo<K, V, P>, ER, S, HashTableIndexer<Fifo<K, V, P>>>, Result<RawCacheEntry<Fifo<K, V, P>, S>, ER>, FetchContext>> for Fetch<K, V, ER, S, P>
impl<K, V, ER, S, P> From<DiversionFuture<RawFetchInner<Fifo<K, V, P>, ER, S, HashTableIndexer<Fifo<K, V, P>>>, Result<RawCacheEntry<Fifo<K, V, P>, S>, ER>, FetchContext>> for Fetch<K, V, ER, S, P>
Source§fn from(
entry: DiversionFuture<RawFetchInner<Fifo<K, V, P>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<Fifo<K, V, P>, S, HashTableIndexer<E>>, ER>, FetchContext>,
) -> Self
fn from( entry: DiversionFuture<RawFetchInner<Fifo<K, V, P>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<Fifo<K, V, P>, S, HashTableIndexer<E>>, ER>, FetchContext>, ) -> Self
Converts to this type from the input type.
Source§impl<K, V, ER, S, P> From<DiversionFuture<RawFetchInner<Lfu<K, V, P>, ER, S, HashTableIndexer<Lfu<K, V, P>>>, Result<RawCacheEntry<Lfu<K, V, P>, S>, ER>, FetchContext>> for Fetch<K, V, ER, S, P>
impl<K, V, ER, S, P> From<DiversionFuture<RawFetchInner<Lfu<K, V, P>, ER, S, HashTableIndexer<Lfu<K, V, P>>>, Result<RawCacheEntry<Lfu<K, V, P>, S>, ER>, FetchContext>> for Fetch<K, V, ER, S, P>
Source§fn from(
entry: DiversionFuture<RawFetchInner<Lfu<K, V, P>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<Lfu<K, V, P>, S, HashTableIndexer<E>>, ER>, FetchContext>,
) -> Self
fn from( entry: DiversionFuture<RawFetchInner<Lfu<K, V, P>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<Lfu<K, V, P>, S, HashTableIndexer<E>>, ER>, FetchContext>, ) -> Self
Converts to this type from the input type.
Source§impl<K, V, ER, S, P> From<DiversionFuture<RawFetchInner<Lru<K, V, P>, ER, S, HashTableIndexer<Lru<K, V, P>>>, Result<RawCacheEntry<Lru<K, V, P>, S>, ER>, FetchContext>> for Fetch<K, V, ER, S, P>
impl<K, V, ER, S, P> From<DiversionFuture<RawFetchInner<Lru<K, V, P>, ER, S, HashTableIndexer<Lru<K, V, P>>>, Result<RawCacheEntry<Lru<K, V, P>, S>, ER>, FetchContext>> for Fetch<K, V, ER, S, P>
Source§fn from(
entry: DiversionFuture<RawFetchInner<Lru<K, V, P>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<Lru<K, V, P>, S, HashTableIndexer<E>>, ER>, FetchContext>,
) -> Self
fn from( entry: DiversionFuture<RawFetchInner<Lru<K, V, P>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<Lru<K, V, P>, S, HashTableIndexer<E>>, ER>, FetchContext>, ) -> Self
Converts to this type from the input type.
Source§impl<K, V, ER, S, P> From<DiversionFuture<RawFetchInner<S3Fifo<K, V, P>, ER, S, HashTableIndexer<S3Fifo<K, V, P>>>, Result<RawCacheEntry<S3Fifo<K, V, P>, S>, ER>, FetchContext>> for Fetch<K, V, ER, S, P>
impl<K, V, ER, S, P> From<DiversionFuture<RawFetchInner<S3Fifo<K, V, P>, ER, S, HashTableIndexer<S3Fifo<K, V, P>>>, Result<RawCacheEntry<S3Fifo<K, V, P>, S>, ER>, FetchContext>> for Fetch<K, V, ER, S, P>
Source§fn from(
entry: DiversionFuture<RawFetchInner<S3Fifo<K, V, P>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<S3Fifo<K, V, P>, S, HashTableIndexer<E>>, ER>, FetchContext>,
) -> Self
fn from( entry: DiversionFuture<RawFetchInner<S3Fifo<K, V, P>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<S3Fifo<K, V, P>, S, HashTableIndexer<E>>, ER>, FetchContext>, ) -> Self
Converts to this type from the input type.
Source§impl<K, V, ER, S, P> From<DiversionFuture<RawFetchInner<Sieve<K, V, P>, ER, S, HashTableIndexer<Sieve<K, V, P>>>, Result<RawCacheEntry<Sieve<K, V, P>, S>, ER>, FetchContext>> for Fetch<K, V, ER, S, P>
impl<K, V, ER, S, P> From<DiversionFuture<RawFetchInner<Sieve<K, V, P>, ER, S, HashTableIndexer<Sieve<K, V, P>>>, Result<RawCacheEntry<Sieve<K, V, P>, S>, ER>, FetchContext>> for Fetch<K, V, ER, S, P>
Source§fn from(
entry: DiversionFuture<RawFetchInner<Sieve<K, V, P>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<Sieve<K, V, P>, S, HashTableIndexer<E>>, ER>, FetchContext>,
) -> Self
fn from( entry: DiversionFuture<RawFetchInner<Sieve<K, V, P>, ER, S, HashTableIndexer<E>>, Result<RawCacheEntry<Sieve<K, V, P>, S, HashTableIndexer<E>>, ER>, FetchContext>, ) -> Self
Converts to this type from the input type.
Source§impl<K, V, ER, S, P> Future for Fetch<K, V, ER, S, P>
impl<K, V, ER, S, P> Future for Fetch<K, V, ER, S, P>
Source§type Output = Result<CacheEntry<K, V, S, P>, ER>
type Output = Result<CacheEntry<K, V, S, P>, ER>
The type of value produced on completion.
impl<'pin, K, V, ER, S, P> Unpin for Fetch<K, V, ER, S, P>where
K: Key,
V: Value,
S: HashBuilder,
P: Properties,
PinnedFieldsOf<__Fetch<'pin, K, V, ER, S, P>>: Unpin,
Auto Trait Implementations§
impl<K, V, ER, S, P> Freeze for Fetch<K, V, ER, S, P>
impl<K, V, ER, S = BuildHasherDefault<Hasher>, P = CacheProperties> !RefUnwindSafe for Fetch<K, V, ER, S, P>
impl<K, V, ER, S, P> Send for Fetch<K, V, ER, S, P>where
ER: Send,
impl<K, V, ER, S, P> Sync for Fetch<K, V, ER, S, P>
impl<K, V, ER, S = BuildHasherDefault<Hasher>, P = CacheProperties> !UnwindSafe for Fetch<K, V, ER, S, P>
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> 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