Trait Extension

Source
pub trait Extension {
    // Required method
    fn extend<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        request: &'life1 (dyn TokenRequest + Sync),
    ) -> Pin<Box<dyn Future<Output = Result<Extensions, ()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn extend<'life0, 'life1, 'async_trait>( &'life0 mut self, request: &'life1 (dyn TokenRequest + Sync), ) -> Pin<Box<dyn Future<Output = Result<Extensions, ()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Inspect the request and extension data to produce extension data.

The input data comes from the extension data produced in the handling of the authorization code request.

Implementations on Foreign Types§

Source§

impl Extension for ()

Source§

fn extend<'life0, 'life1, 'async_trait>( &'life0 mut self, _: &'life1 (dyn TokenRequest + Sync), ) -> Pin<Box<dyn Future<Output = Result<Extensions, ()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

impl Extension for AddonList

Source§

fn extend<'life0, 'life1, 'async_trait>( &'life0 mut self, request: &'life1 (dyn ClientCredentialsRequest + Sync), ) -> Pin<Box<dyn Future<Output = Result<Extensions, ()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§