pub enum CacheBackendFailurePolicy {
ReturnError,
FallbackToMemory,
}Expand description
Controls how cache construction handles a requested backend that cannot be created.
Variants§
ReturnError
Return the construction error to the caller.
FallbackToMemory
Preserve the compatibility behavior by constructing a memory cache.
Trait Implementations§
Source§impl Clone for CacheBackendFailurePolicy
impl Clone for CacheBackendFailurePolicy
Source§fn clone(&self) -> CacheBackendFailurePolicy
fn clone(&self) -> CacheBackendFailurePolicy
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 CacheBackendFailurePolicy
impl Debug for CacheBackendFailurePolicy
Source§impl Default for CacheBackendFailurePolicy
impl Default for CacheBackendFailurePolicy
Source§fn default() -> CacheBackendFailurePolicy
fn default() -> CacheBackendFailurePolicy
Returns the “default value” for a type. Read more
impl Copy for CacheBackendFailurePolicy
impl Eq for CacheBackendFailurePolicy
impl StructuralPartialEq for CacheBackendFailurePolicy
Auto Trait Implementations§
impl Freeze for CacheBackendFailurePolicy
impl RefUnwindSafe for CacheBackendFailurePolicy
impl Send for CacheBackendFailurePolicy
impl Sync for CacheBackendFailurePolicy
impl Unpin for CacheBackendFailurePolicy
impl UnwindSafe for CacheBackendFailurePolicy
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more