pub enum ClassificationReason {
DirNameExact {
needle: &'static str,
},
DirNameContainsCache,
FileNameSuffix {
needle: &'static str,
},
FileExtension {
needle: &'static str,
},
Default,
}Expand description
Why an entry was assigned a category. Surfaced via --explain-category
so anyone debugging “why is this cache?” can see the rule that fired
without reading the source. Wire form lives in wire::explain.
Variants§
DirNameExact
Matched an exact directory-name rule (case-insensitive).
DirNameContainsCache
Directory name contains the substring “cache” (case-insensitive).
Catches things like GPUCache and Code Cache that aren’t worth
listing individually.
FileNameSuffix
Matched a special filename suffix (e.g. data.img.raw). Distinct
from a plain extension because the rule keys off more than the dot
suffix.
FileExtension
Matched a file extension (e.g. .log, .gz).
Default
No rule matched; defaulted to other.
Implementations§
Trait Implementations§
Source§impl Clone for ClassificationReason
impl Clone for ClassificationReason
Source§fn clone(&self) -> ClassificationReason
fn clone(&self) -> ClassificationReason
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 moreSource§impl Debug for ClassificationReason
impl Debug for ClassificationReason
Source§impl PartialEq for ClassificationReason
impl PartialEq for ClassificationReason
Source§fn eq(&self, other: &ClassificationReason) -> bool
fn eq(&self, other: &ClassificationReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ClassificationReason
impl StructuralPartialEq for ClassificationReason
Auto Trait Implementations§
impl Freeze for ClassificationReason
impl RefUnwindSafe for ClassificationReason
impl Send for ClassificationReason
impl Sync for ClassificationReason
impl Unpin for ClassificationReason
impl UnsafeUnpin for ClassificationReason
impl UnwindSafe for ClassificationReason
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 more