pub enum DisabledReason {
Context,
PolicyDisabled,
InvalidTtl,
InvalidRamp,
RampedDown,
ConfigError,
}Expand description
Why a cache layer was skipped.
Variants§
Context
Caching is not enabled for the call’s scope; the source runs directly.
PolicyDisabled
The layer has no effective TTL after the runtime overlay, which includes the default of an omitted policy.
InvalidTtl
The merged TTL leaf is not a whole number of seconds within 365
days; only this layer is skipped, with a config_resolution error.
InvalidRamp
The merged ramp leaf is not a finite number in [0, 100]; only
this layer is skipped, with a config_resolution error.
RampedDown
The layer is configured but this key’s stable cohort sample falls outside its ramp.
ConfigError
The whole invocation’s policy could not be resolved (noop
layer), or the process-local read failed (local layer).
Implementations§
Trait Implementations§
Source§impl Clone for DisabledReason
impl Clone for DisabledReason
Source§fn clone(&self) -> DisabledReason
fn clone(&self) -> DisabledReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DisabledReason
Source§impl Debug for DisabledReason
impl Debug for DisabledReason
Source§impl Display for DisabledReason
impl Display for DisabledReason
impl Eq for DisabledReason
Source§impl Hash for DisabledReason
impl Hash for DisabledReason
Source§impl PartialEq for DisabledReason
impl PartialEq for DisabledReason
Source§fn eq(&self, other: &DisabledReason) -> bool
fn eq(&self, other: &DisabledReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DisabledReason
Auto Trait Implementations§
impl Freeze for DisabledReason
impl RefUnwindSafe for DisabledReason
impl Send for DisabledReason
impl Sync for DisabledReason
impl Unpin for DisabledReason
impl UnsafeUnpin for DisabledReason
impl UnwindSafe for DisabledReason
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
Compare self to
key and return true if they are equal.