pub struct KnownPathRule {
pub path: PathBuf,
pub category: Category,
pub description: String,
pub risk: Risk,
pub regenerates: bool,
pub regeneration_hint: Option<String>,
}Expand description
A rule that knows how to find cleanable items at known paths
Fields§
§path: PathBuf§category: Category§description: String§risk: Risk§regenerates: bool§regeneration_hint: Option<String>Implementations§
Source§impl KnownPathRule
impl KnownPathRule
pub fn into_item(self, size: u64) -> CleanableItem
pub fn into_item_with_stats( self, size: u64, last_modified: Option<SystemTime>, ) -> CleanableItem
Auto Trait Implementations§
impl Freeze for KnownPathRule
impl RefUnwindSafe for KnownPathRule
impl Send for KnownPathRule
impl Sync for KnownPathRule
impl Unpin for KnownPathRule
impl UnsafeUnpin for KnownPathRule
impl UnwindSafe for KnownPathRule
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> 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