pub enum FileHashLookup {
Hit(String),
NeedsHash(FileFingerprint),
Uncacheable,
}Expand description
Result of a content-hash cache lookup that does NOT compute a blake3 — the
lock-narrowing seam for the daemon’s HashFiles path (#281). The caller
hashes (hash_file) outside any store lock on a miss, then records via
FileHashCache::record_cached.
Variants§
Hit(String)
Cached hash found — no hashing needed.
NeedsHash(FileFingerprint)
Cache miss; hash the file then record under this fingerprint.
Uncacheable
Too small to persist, or metadata unreadable — hash but don’t cache.
Auto Trait Implementations§
impl Freeze for FileHashLookup
impl RefUnwindSafe for FileHashLookup
impl Send for FileHashLookup
impl Sync for FileHashLookup
impl Unpin for FileHashLookup
impl UnsafeUnpin for FileHashLookup
impl UnwindSafe for FileHashLookup
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