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 Build’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§
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