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 both mtimes match.
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