Trait Authorizer

Source
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 T
where T: Authorizer + Send + ?Sized,