struct GlobalCleanConfig {
max_src_age: Option<String>,
max_crate_age: Option<String>,
max_index_age: Option<String>,
max_git_co_age: Option<String>,
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 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>,
Auto Trait Implementations§
impl Freeze for GlobalCleanConfig
impl RefUnwindSafe for GlobalCleanConfig
impl Send for GlobalCleanConfig
impl Sync for GlobalCleanConfig
impl Unpin 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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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