Skip to main content

ChannelAuthorizer

Trait ChannelAuthorizer 

Source
pub trait ChannelAuthorizer: Send + Sync {
    // Required method
    fn authorize<'life0, 'life1, 'async_trait>(
        &'life0 self,
        data: &'life1 AuthData,
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Trait for authorizing channel access.

Required Methods§

Source

fn authorize<'life0, 'life1, 'async_trait>( &'life0 self, data: &'life1 AuthData, ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Check if access should be granted.

Implementors§