pub trait EvolutionStore: Send + Sync {
// Required methods
fn save_experiment<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tenant_id: &'life1 str,
experiment: &'life2 GenomeExperiment,
) -> Pin<Box<dyn Future<Output = Result<(), EvolutionStoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn load_recent<'life0, 'life1, 'async_trait>(
&'life0 self,
tenant_id: &'life1 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<GenomeExperiment>, EvolutionStoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn save_rule<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tenant_id: &'life1 str,
rule: &'life2 OptimizationRule,
) -> Pin<Box<dyn Future<Output = Result<(), EvolutionStoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn load_rules<'life0, 'life1, 'async_trait>(
&'life0 self,
tenant_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<OptimizationRule>, EvolutionStoreError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Required Methods§
Sourcefn save_experiment<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tenant_id: &'life1 str,
experiment: &'life2 GenomeExperiment,
) -> Pin<Box<dyn Future<Output = Result<(), EvolutionStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn save_experiment<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tenant_id: &'life1 str,
experiment: &'life2 GenomeExperiment,
) -> Pin<Box<dyn Future<Output = Result<(), EvolutionStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Save an experiment to persistent storage
Sourcefn load_recent<'life0, 'life1, 'async_trait>(
&'life0 self,
tenant_id: &'life1 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<GenomeExperiment>, EvolutionStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_recent<'life0, 'life1, 'async_trait>(
&'life0 self,
tenant_id: &'life1 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<GenomeExperiment>, EvolutionStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Load recent experiments
Sourcefn save_rule<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tenant_id: &'life1 str,
rule: &'life2 OptimizationRule,
) -> Pin<Box<dyn Future<Output = Result<(), EvolutionStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn save_rule<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tenant_id: &'life1 str,
rule: &'life2 OptimizationRule,
) -> Pin<Box<dyn Future<Output = Result<(), EvolutionStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Save an optimization rule (semantic lesson)
Sourcefn load_rules<'life0, 'life1, 'async_trait>(
&'life0 self,
tenant_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<OptimizationRule>, EvolutionStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_rules<'life0, 'life1, 'async_trait>(
&'life0 self,
tenant_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<OptimizationRule>, EvolutionStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Load available optimization rules