pub enum FileHash {
Content(String),
Oversized,
}Expand description
Outcome of fingerprinting a file for cache keying.
Variants§
Content(String)
blake3 content digest, hex-encoded.
Oversized
File is larger than the content-hash ceiling. It carries no digest on purpose: a size/mtime fingerprint would collide two different files with equal size and mtime onto one key, so a tool whose output depends on an oversized file must not cache.
Implementations§
Trait Implementations§
impl Eq for FileHash
impl StructuralPartialEq for FileHash
Auto Trait Implementations§
impl Freeze for FileHash
impl RefUnwindSafe for FileHash
impl Send for FileHash
impl Sync for FileHash
impl Unpin for FileHash
impl UnsafeUnpin for FileHash
impl UnwindSafe for FileHash
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