pub struct EngineCachePruneOpts<'a> {
pub max_estimated_bytes: Option<isize>,
pub max_used_space: Option<&'a str>,
pub min_free_space: Option<&'a str>,
pub reserved_space: Option<&'a str>,
pub target_estimated_bytes: Option<isize>,
pub target_space: Option<&'a str>,
pub use_default_policy: Option<bool>,
}Fields§
§max_estimated_bytes: Option<isize>Override the maximum structural metadata estimate in absolute bytes. Explicit values must be positive; the configured/default value is used when omitted.
max_used_space: Option<&'a str>Override the maximum disk space to keep before pruning (e.g. “200GB” or “80%”).
min_free_space: Option<&'a str>Override the minimum free disk space target during pruning (e.g. “20GB” or “20%”).
reserved_space: Option<&'a str>Override the minimum disk space to retain during pruning (e.g. “500GB” or “10%”).
target_estimated_bytes: Option<isize>Override the structural metadata estimate to target in absolute bytes. Explicit values must be positive and lower than the resolved maximum; the configured/default value is used when omitted.
target_space: Option<&'a str>Override the target disk space to keep after pruning (e.g. “200GB” or “50%”).
use_default_policy: Option<bool>Use enabled engine-wide default disk and structural policies. If no default disk policy is enabled, the disk stage falls back to pruning all releasable disk-cache entries. If false, explicit options select stages; with no options, all releasable disk-cache entries are pruned.
Trait Implementations§
Source§impl<'a> Debug for EngineCachePruneOpts<'a>
impl<'a> Debug for EngineCachePruneOpts<'a>
Source§impl<'a> PartialEq for EngineCachePruneOpts<'a>
impl<'a> PartialEq for EngineCachePruneOpts<'a>
impl<'a> StructuralPartialEq for EngineCachePruneOpts<'a>
Auto Trait Implementations§
impl<'a> Freeze for EngineCachePruneOpts<'a>
impl<'a> RefUnwindSafe for EngineCachePruneOpts<'a>
impl<'a> Send for EngineCachePruneOpts<'a>
impl<'a> Sync for EngineCachePruneOpts<'a>
impl<'a> Unpin for EngineCachePruneOpts<'a>
impl<'a> UnsafeUnpin for EngineCachePruneOpts<'a>
impl<'a> UnwindSafe for EngineCachePruneOpts<'a>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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