pub trait RuntimePredictionCacheStore {
// Required methods
fn load_blocks(&self, requirement_key: &str) -> Result<Vec<PredictionBlock>>;
fn materialize(
&self,
request: &PredictionCacheMaterializationRequest,
) -> Result<HandleRef>;
// Provided method
fn load_aggregated_blocks(
&self,
requirement_key: &str,
) -> Result<Vec<AggregatedPredictionBlock>> { ... }
}Required Methods§
fn load_blocks(&self, requirement_key: &str) -> Result<Vec<PredictionBlock>>
fn materialize( &self, request: &PredictionCacheMaterializationRequest, ) -> Result<HandleRef>
Provided Methods§
fn load_aggregated_blocks( &self, requirement_key: &str, ) -> Result<Vec<AggregatedPredictionBlock>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".