Skip to main content

BaselineStore

Trait BaselineStore 

Source
pub trait BaselineStore: Send + Sync {
    // Required methods
    fn put<'life0, 'async_trait>(
        &'life0 self,
        baseline: EntityBaseline,
    ) -> Pin<Box<dyn Future<Output = Result<(), BaselineError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        entity: &'life1 str,
        metric: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<EntityBaseline, BaselineError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn contains<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        entity: &'life1 str,
        metric: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn put<'life0, 'async_trait>( &'life0 self, baseline: EntityBaseline, ) -> Pin<Box<dyn Future<Output = Result<(), BaselineError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, entity: &'life1 str, metric: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<EntityBaseline, BaselineError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn contains<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, entity: &'life1 str, metric: &'life2 str, ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§