pub struct GlobalCleanConfig {
pub max_src_age: Option<String>,
pub max_crate_age: Option<String>,
pub max_index_age: Option<String>,
pub max_git_co_age: Option<String>,
pub max_git_db_age: Option<String>,
}Expand description
Cache cleaning settings from the cache.global-clean config table.
NOTE: Not all of these options may get stabilized. Some of them are very low-level details, and may not be something typical users need.
If any of these options are None, the built-in default is used.
Fields§
§max_src_age: Option<String>Anything older than this duration will be deleted in the source cache.
max_crate_age: Option<String>Anything older than this duration will be deleted in the compressed crate cache.
max_index_age: Option<String>Any index older than this duration will be deleted from the index cache.
max_git_co_age: Option<String>Any git checkout older than this duration will be deleted from the checkout cache.
max_git_db_age: Option<String>Any git clone older than this duration will be deleted from the git cache.
Trait Implementations§
Source§impl Debug for GlobalCleanConfig
impl Debug for GlobalCleanConfig
Source§impl Default for GlobalCleanConfig
impl Default for GlobalCleanConfig
Source§fn default() -> GlobalCleanConfig
fn default() -> GlobalCleanConfig
Source§impl<'de> Deserialize<'de> for GlobalCleanConfig
impl<'de> Deserialize<'de> for GlobalCleanConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for GlobalCleanConfig
impl PartialEq for GlobalCleanConfig
impl StructuralPartialEq for GlobalCleanConfig
Auto Trait Implementations§
impl Freeze for GlobalCleanConfig
impl RefUnwindSafe for GlobalCleanConfig
impl Send for GlobalCleanConfig
impl Sync for GlobalCleanConfig
impl Unpin for GlobalCleanConfig
impl UnsafeUnpin for GlobalCleanConfig
impl UnwindSafe for GlobalCleanConfig
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 120 bytes