Skip to main content

AuthHook

Trait AuthHook 

Source
pub trait AuthHook: Send + Sync {
    // Provided method
    fn on_event<'life0, 'life1, 'async_trait>(
        &'life0 self,
        event: &'life1 AuthEvent,
    ) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait { ... }
}

Provided Methods§

Source

fn on_event<'life0, 'life1, 'async_trait>( &'life0 self, event: &'life1 AuthEvent, ) -> Pin<Box<dyn Future<Output = Result<(), AuthError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Implementors§