Skip to main content

Authority

Trait Authority 

pub trait Authority<C, L>:
    Send
    + Sync
    + 'static {
    // Required method
    fn authorized(
        &self,
        credentials: C,
    ) -> impl Future<Output = Option<Extensions>> + Send;
}
Available on crate feature http only.
Expand description

The Authority trait is used to determine if a set of Credentials are authorized.

Required Methods§

fn authorized( &self, credentials: C, ) -> impl Future<Output = Option<Extensions>> + Send

Returns true if the credentials are authorized, otherwise false.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

§

impl<A, C, L> Authority<C, L> for A
where A: AuthoritySync<C, L>, C: Credentials + Send + 'static, L: 'static,