Skip to main content

ScopeAuthorizer

Trait ScopeAuthorizer 

Source
pub trait ScopeAuthorizer: Send + Sync {
    // Required method
    fn authorize_scope<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        auth: &'life1 AuthContext,
        session: &'life2 SessionMetadata,
    ) -> Pin<Box<dyn Future<Output = Result<(), ExecutionError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Application authorization for a requested partial synchronization scope.

Required Methods§

Source

fn authorize_scope<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, auth: &'life1 AuthContext, session: &'life2 SessionMetadata, ) -> Pin<Box<dyn Future<Output = Result<(), ExecutionError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Authorizes all requested opaque partition selectors before data access.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§