pub struct CrateHistoryEntry {
pub cache_key: String,
pub crate_name: String,
pub entry_dir: PathBuf,
pub compile_time_ms: Option<u64>,
pub size_bytes: Option<u64>,
}Expand description
One prior build of a crate on this machine, from the local store’s index
(kunobi-ninja/kache#617). Replaces a bare (key, crate, dir) tuple so the
planner can rank by rebuild cost and size.
Fields§
§cache_key: String§crate_name: String§entry_dir: PathBuf§compile_time_ms: Option<u64>None when the index has no value: these columns default to 0 for rows
predating their migrations, and a 0 read as a real measurement would
rank an un-backfilled entry as worthless.
size_bytes: Option<u64>Trait Implementations§
Source§impl Clone for CrateHistoryEntry
impl Clone for CrateHistoryEntry
Source§impl Debug for CrateHistoryEntry
impl Debug for CrateHistoryEntry
impl Eq for CrateHistoryEntry
Source§impl PartialEq for CrateHistoryEntry
impl PartialEq for CrateHistoryEntry
impl StructuralPartialEq for CrateHistoryEntry
Auto Trait Implementations§
impl Freeze for CrateHistoryEntry
impl RefUnwindSafe for CrateHistoryEntry
impl Send for CrateHistoryEntry
impl Sync for CrateHistoryEntry
impl Unpin for CrateHistoryEntry
impl UnsafeUnpin for CrateHistoryEntry
impl UnwindSafe for CrateHistoryEntry
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