pub struct BuildReportCache { /* private fields */ }Expand description
Build report cache for CSV persistence
Implementations§
Source§impl BuildReportCache
impl BuildReportCache
Sourcepub fn default_cache_path() -> PathBuf
pub fn default_cache_path() -> PathBuf
Get the default cache file path
Sourcepub fn load(&self) -> HashMap<(String, String), Vec<BuildReport>>
pub fn load(&self) -> HashMap<(String, String), Vec<BuildReport>>
Load build reports from CSV
Returns empty HashMap if file doesn’t exist or parsing fails
Sourcepub fn save(
&self,
reports: &HashMap<(String, String), Vec<BuildReport>>,
) -> Result<(), Error>
pub fn save( &self, reports: &HashMap<(String, String), Vec<BuildReport>>, ) -> Result<(), Error>
Save build reports to CSV
Merges with existing reports and enforces history limit
Sourcepub fn calculate_median(reports: &[BuildReport]) -> Option<u64>
pub fn calculate_median(reports: &[BuildReport]) -> Option<u64>
Calculate median build time from historical reports
Returns None if there are no reports
Auto Trait Implementations§
impl Freeze for BuildReportCache
impl RefUnwindSafe for BuildReportCache
impl Send for BuildReportCache
impl Sync for BuildReportCache
impl Unpin for BuildReportCache
impl UnsafeUnpin for BuildReportCache
impl UnwindSafe for BuildReportCache
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