pub struct SharedIncrementalTargetPrunePolicy { /* private fields */ }Expand description
Whole-target retention limits for caller-owned shared Cargo state.
Unlike immutable fingerprint entries, a shared Cargo target has no safe
per-entry LRU boundary. When either configured limit is exceeded,
maintenance clears every other target child while preserving
ic-testkit’s coordination metadata and the target root. Callers must not
colocate unrelated data that needs to survive a clear.
Implementations§
Sourcepub const fn with_max_age(self, max_age: Duration) -> Self
pub const fn with_max_age(self, max_age: Duration) -> Self
Clear shared Cargo state when its recorded use is older than max_age.
Sourcepub const fn with_max_size_bytes(self, bytes: u64) -> Self
pub const fn with_max_size_bytes(self, bytes: u64) -> Self
Clear shared Cargo state when its logical size exceeds bytes.
Sourcepub const fn max_age(self) -> Option<Duration>
pub const fn max_age(self) -> Option<Duration>
Configured maximum time since recorded build use.
Sourcepub const fn max_size_bytes(self) -> Option<u64>
pub const fn max_size_bytes(self) -> Option<u64>
Configured maximum logical target size.
Trait Implementations§
Source§fn clone(&self) -> SharedIncrementalTargetPrunePolicy
fn clone(&self) -> SharedIncrementalTargetPrunePolicy
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 moreSource§fn default() -> SharedIncrementalTargetPrunePolicy
fn default() -> SharedIncrementalTargetPrunePolicy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.