pub enum VerifyRestores {
Off,
Sampled,
Always,
}Expand description
How aggressively a local cache hit re-hashes its blobs against their content address before serving them, to catch silent on-disk corruption / bit rot / a memo collision before it reaches the compiler as a wrong artifact (kunobi-ninja/kache#332).
Variants§
Off
Never re-hash (size check only). Default — verifying every hit costs an extra full read per blob.
Sampled
Re-hash a deterministic 1-in-N fraction of hits, for cheap always-on background coverage that amortizes the cost across many restores.
Always
Re-hash every blob on every hit.
Trait Implementations§
Source§impl Clone for VerifyRestores
impl Clone for VerifyRestores
impl Copy for VerifyRestores
Source§impl Debug for VerifyRestores
impl Debug for VerifyRestores
impl Eq for VerifyRestores
Source§impl PartialEq for VerifyRestores
impl PartialEq for VerifyRestores
impl StructuralPartialEq for VerifyRestores
Auto Trait Implementations§
impl Freeze for VerifyRestores
impl RefUnwindSafe for VerifyRestores
impl Send for VerifyRestores
impl Sync for VerifyRestores
impl Unpin for VerifyRestores
impl UnsafeUnpin for VerifyRestores
impl UnwindSafe for VerifyRestores
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