pub enum Layer {
Noop,
RequestLocal,
Local,
Remote,
RemoteShadow,
}Expand description
The cache layer a diagnostic refers to.
Variants§
Noop
No layer was reached: caching was disabled for the scope, key construction failed, or the policy could not be resolved.
RequestLocal
The outermost enabled scope’s request memo.
Local
The process-local store.
Remote
The remote adapter on the caller-serving path.
RemoteShadow
The remote adapter inside detached shadow work: its reads, fills, serialization, compression and payload sizes.
Implementations§
Trait Implementations§
impl Copy for Layer
impl Eq for Layer
impl StructuralPartialEq for Layer
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnsafeUnpin for Layer
impl UnwindSafe for Layer
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.