Trait ApiKeyLimiter

Source
pub trait ApiKeyLimiter {
    // Required method
    fn use_key<'life0, 'life1, 'async_trait>(
        &'life0 self,
        api_key: &'life1 ApiKey,
    ) -> Pin<Box<dyn Future<Output = Result<(), ApiKeyLimiterError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn use_key<'life0, 'life1, 'async_trait>( &'life0 self, api_key: &'life1 ApiKey, ) -> Pin<Box<dyn Future<Output = Result<(), ApiKeyLimiterError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§