struct AutoConfig {
frequency: Option<String>,
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
Automatic garbage collection settings from the gc.auto
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§
§frequency: Option<String>
The maximum frequency that automatic garbage collection happens.
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 AutoConfig
impl Default for AutoConfig
Source§fn default() -> AutoConfig
fn default() -> AutoConfig
Source§impl<'de> Deserialize<'de> for AutoConfig
impl<'de> Deserialize<'de> for AutoConfig
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 AutoConfig
impl RefUnwindSafe for AutoConfig
impl Send for AutoConfig
impl Sync for AutoConfig
impl Unpin for AutoConfig
impl UnwindSafe for AutoConfig
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>
§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>,
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: 144 bytes