Skip to main content

AccessTokenPolicy

Trait AccessTokenPolicy 

Source
pub trait AccessTokenPolicy:
    Send
    + Sync
    + Clone {
    // Required methods
    fn evaluate<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ctx: &'life1 AccessTokenContext,
    ) -> Pin<Box<dyn Future<Output = Result<TokenPolicyDecision, PolicyError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn resume<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ctx: &'life1 AccessTokenContext,
        input: PendingInput,
    ) -> Pin<Box<dyn Future<Output = Result<TokenPolicyDecision, PolicyError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn evaluate<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 AccessTokenContext, ) -> Pin<Box<dyn Future<Output = Result<TokenPolicyDecision, PolicyError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn resume<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 AccessTokenContext, input: PendingInput, ) -> Pin<Box<dyn Future<Output = Result<TokenPolicyDecision, PolicyError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§