# Trait Stats

Source

    pub trait Stats:
        Send
        + Sync
        + CloneStats {
        // Required methods
        fn record_fetch<'life0, 'life1, 'life2, 'async_trait>(
            &'life0 self,
            d: &'life1 Data,
            key: &'life2 str,
        ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
           where Self: 'async_trait,
                 'life0: 'async_trait,
                 'life1: 'async_trait,
                 'life2: 'async_trait;
        fn record_solve<'life0, 'life1, 'life2, 'async_trait>(
            &'life0 self,
            d: &'life1 Data,
            key: &'life2 str,
        ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
           where Self: 'async_trait,
                 'life0: 'async_trait,
                 'life1: 'async_trait,
                 'life2: 'async_trait;
        fn record_confirm<'life0, 'life1, 'life2, 'async_trait>(
            &'life0 self,
            d: &'life1 Data,
            key: &'life2 str,
        ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
           where Self: 'async_trait,
                 'life0: 'async_trait,
                 'life1: 'async_trait,
                 'life2: 'async_trait;
        fn fetch<'life0, 'life1, 'life2, 'life3, 'async_trait>(
            &'life0 self,
            d: &'life1 Data,
            user: &'life2 str,
            key: &'life3 str,
        ) -> Pin<Box<dyn Future<Output = DBResult<CaptchaStats>> + Send + 'async_trait>>
           where Self: 'async_trait,
                 'life0: 'async_trait,
                 'life1: 'async_trait,
                 'life2: 'async_trait,
                 'life3: 'async_trait;
    }

## Required Methods§

Source

#### fn record_fetch<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, d: &'life1 Data, key: &'life2 str, ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

record PoWConfig fetches

Source

#### fn record_solve<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, d: &'life1 Data, key: &'life2 str, ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

record PoWConfig solves

Source

#### fn record_confirm<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, d: &'life1 Data, key: &'life2 str, ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

record PoWConfig confirms

Source

#### fn fetch<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, d: &'life1 Data, user: &'life2 str, key: &'life3 str, ) -> Pin<Box<dyn Future<Output = DBResult<CaptchaStats>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

fetch stats

## Implementors§

Source§

### impl Stats for Dummy

Source§

### impl Stats for Real