pub trait InspectCacheRead {
// Required methods
fn get_aggregated_for_config(
&self,
key: &JobKey,
config: &Config,
) -> Result<Option<Value>, InspectCacheError>;
fn latest_aggregate_any_hash(
&self,
category: InspectCategory,
) -> Result<Option<Value>, InspectCacheError>;
fn contribution_freshness(
&self,
category: InspectCategory,
) -> Result<Vec<(PathBuf, FileFreshness)>, InspectCacheError>;
fn load_tier2_contributions(
&self,
category: InspectCategory,
) -> Result<Vec<ContributionRecord>, InspectCacheError>;
fn contribution_set_hash_for_config(
&self,
category: InspectCategory,
config: &Config,
) -> Result<String, InspectCacheError>;
fn last_full_run(
&self,
category: InspectCategory,
) -> Result<Option<i64>, InspectCacheError>;
}Required Methods§
fn get_aggregated_for_config( &self, key: &JobKey, config: &Config, ) -> Result<Option<Value>, InspectCacheError>
fn latest_aggregate_any_hash( &self, category: InspectCategory, ) -> Result<Option<Value>, InspectCacheError>
fn contribution_freshness( &self, category: InspectCategory, ) -> Result<Vec<(PathBuf, FileFreshness)>, InspectCacheError>
fn load_tier2_contributions( &self, category: InspectCategory, ) -> Result<Vec<ContributionRecord>, InspectCacheError>
fn contribution_set_hash_for_config( &self, category: InspectCategory, config: &Config, ) -> Result<String, InspectCacheError>
fn last_full_run( &self, category: InspectCategory, ) -> Result<Option<i64>, InspectCacheError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".