pub struct CachedEntry {
pub hint: Box<str>,
pub meta_mtime_ns: u64,
pub asset_mtime_ns: u64,
pub guid: u128,
pub asset_type: CachedAssetType,
pub sub_assets: Vec<SubAsset>,
}Expand description
One cached parse result, keyed by hint. Lets a re-bake skip the
.meta + asset reads when the meta mtime matches.
asset_mtime_ns is recorded but no longer participates in the warm
fast-path invalidation check — process_one keys solely on
meta_mtime_ns. The field is retained for forensic value (a future
re-bake or external tooling can compare against the live asset
mtime) and as a schema slot for richer invalidation logic should it
land. The implication: under hand-edits that touch the asset
without touching the .meta, this field can become stale on the
next re-bake (still serves the cached row). See
tests/bake.rs::cache_does_not_detect_asset_only_touch.
Fields§
§hint: Box<str>§meta_mtime_ns: u64§asset_mtime_ns: u64§guid: u128§asset_type: CachedAssetType§sub_assets: Vec<SubAsset>Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for CachedEntry
impl<'__de, __Context> BorrowDecode<'__de, __Context> for CachedEntry
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for CachedEntry
impl Clone for CachedEntry
Source§fn clone(&self) -> CachedEntry
fn clone(&self) -> CachedEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CachedEntry
impl Debug for CachedEntry
Source§impl<__Context> Decode<__Context> for CachedEntry
impl<__Context> Decode<__Context> for CachedEntry
Auto Trait Implementations§
impl Freeze for CachedEntry
impl RefUnwindSafe for CachedEntry
impl Send for CachedEntry
impl Sync for CachedEntry
impl Unpin for CachedEntry
impl UnsafeUnpin for CachedEntry
impl UnwindSafe for CachedEntry
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