pub struct BackingStorageOptions {
pub is_ci: bool,
pub is_short_session: bool,
pub skip_compaction: bool,
}Expand description
Options controlling how the on-disk persistent cache database is opened and compacted.
Fields§
§is_ci: boolWhether the process is running in a CI environment. Enables more aggressive (full) compaction on shutdown to reduce the size of the cache that gets uploaded.
is_short_session: boolWhether this is a short-lived session (e.g. a single build). Disables background persistence during the session
skip_compaction: boolWhether to skip database compaction on shutdown entirely
Trait Implementations§
Source§impl Clone for BackingStorageOptions
impl Clone for BackingStorageOptions
Source§fn clone(&self) -> BackingStorageOptions
fn clone(&self) -> BackingStorageOptions
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 moreimpl Copy for BackingStorageOptions
Source§impl Debug for BackingStorageOptions
impl Debug for BackingStorageOptions
Source§impl Default for BackingStorageOptions
impl Default for BackingStorageOptions
Source§fn default() -> BackingStorageOptions
fn default() -> BackingStorageOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BackingStorageOptions
impl RefUnwindSafe for BackingStorageOptions
impl Send for BackingStorageOptions
impl Sync for BackingStorageOptions
impl Unpin for BackingStorageOptions
impl UnsafeUnpin for BackingStorageOptions
impl UnwindSafe for BackingStorageOptions
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,
§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> ⓘ
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