pub struct CacheNote<'a> {
pub effect: CacheEffect,
pub kind: NodeKind,
pub id: &'a NodeId,
pub bytes: u64,
pub wall_micros: u64,
}Expand description
A non-authoritative, best-effort cache event (Phase 15.6).
It never affects output bytes and is never consulted by
materialize/decode/verify; a cache implementation may ignore it
entirely. wall_micros is reserved for a measured per-node cost — the current
call sites pass 0, and the promotion policy falls back to a deterministic
bytes x kind_weight estimate rather than a wall-clock reading (which would
make promotion decisions irreproducible).
Fields§
§effect: CacheEffectWhether the node was a hit or was just stored.
kind: NodeKindWhat the node computes (drives the promotion cost weight).
id: &'a NodeIdThe content-addressed node id.
bytes: u64The node output length in bytes.
wall_micros: u64Reserved measured cost; 0 at the current call sites.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CacheNote<'a>
impl<'a> RefUnwindSafe for CacheNote<'a>
impl<'a> Send for CacheNote<'a>
impl<'a> Sync for CacheNote<'a>
impl<'a> Unpin for CacheNote<'a>
impl<'a> UnsafeUnpin for CacheNote<'a>
impl<'a> UnwindSafe for CacheNote<'a>
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