pub struct InMemoryPredictionCacheStore { /* private fields */ }Implementations§
Source§impl InMemoryPredictionCacheStore
impl InMemoryPredictionCacheStore
pub fn from_payloads( bundle: &ExecutionBundle, payloads: BundlePredictionCachePayloadSet, ) -> Result<InMemoryPredictionCacheStore, DagMlError>
pub fn payload_count(&self) -> usize
pub fn materialization_records( &self, ) -> Vec<PredictionCacheMaterializationRecord>
Trait Implementations§
Source§impl Clone for InMemoryPredictionCacheStore
impl Clone for InMemoryPredictionCacheStore
Source§fn clone(&self) -> InMemoryPredictionCacheStore
fn clone(&self) -> InMemoryPredictionCacheStore
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 InMemoryPredictionCacheStore
impl Debug for InMemoryPredictionCacheStore
Source§impl Default for InMemoryPredictionCacheStore
impl Default for InMemoryPredictionCacheStore
Source§fn default() -> InMemoryPredictionCacheStore
fn default() -> InMemoryPredictionCacheStore
Returns the “default value” for a type. Read more
Source§impl RuntimePredictionCacheStore for InMemoryPredictionCacheStore
impl RuntimePredictionCacheStore for InMemoryPredictionCacheStore
fn load_blocks( &self, requirement_key: &str, ) -> Result<Vec<PredictionBlock>, DagMlError>
fn load_aggregated_blocks( &self, requirement_key: &str, ) -> Result<Vec<AggregatedPredictionBlock>, DagMlError>
fn materialize( &self, request: &PredictionCacheMaterializationRequest, ) -> Result<HandleRef, DagMlError>
Auto Trait Implementations§
impl !Freeze for InMemoryPredictionCacheStore
impl !RefUnwindSafe for InMemoryPredictionCacheStore
impl !Sync for InMemoryPredictionCacheStore
impl Send for InMemoryPredictionCacheStore
impl Unpin for InMemoryPredictionCacheStore
impl UnsafeUnpin for InMemoryPredictionCacheStore
impl UnwindSafe for InMemoryPredictionCacheStore
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