Trait mcaptcha::stats::Stats

source ·
pub trait Stats: Send + Sync + CloneStats {
    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§

record PoWConfig fetches

record PoWConfig solves

record PoWConfig confirms

fetch stats

Implementors§