pub trait Authorizer {
    // Required methods
    fn authorize<'life0, 'async_trait>(
        &'life0 mut self,
        __arg1: Grant
    ) -> Pin<Box<dyn Future<Output = Result<String, ()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn extract<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        _: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Option<Grant>, ()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn authorize<'life0, 'async_trait>( &'life0 mut self, __arg1: Grant ) -> Pin<Box<dyn Future<Output = Result<String, ()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn extract<'life0, 'life1, 'async_trait>( &'life0 mut self, _: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<Option<Grant>, ()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§

source§

impl<T> Authorizer for Twhere T: Authorizer + Send + ?Sized,