pub struct SqliteEvolutionStore { /* private fields */ }Expand description
SQL implementation of EvolutionStore
Implementations§
Trait Implementations§
Source§impl EvolutionStore for SqliteEvolutionStore
impl EvolutionStore for SqliteEvolutionStore
Source§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 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
Source§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 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
Source§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 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)
Source§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,
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
Auto Trait Implementations§
impl Freeze for SqliteEvolutionStore
impl !RefUnwindSafe for SqliteEvolutionStore
impl Send for SqliteEvolutionStore
impl Sync for SqliteEvolutionStore
impl Unpin for SqliteEvolutionStore
impl !UnwindSafe for SqliteEvolutionStore
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more