Trait Authority
pub trait Authority<C, L>:
Send
+ Sync
+ 'static {
// Required method
fn authorized(
&self,
credentials: C,
) -> impl Future<Output = Option<Extensions>> + Send;
}Expand description
The Authority trait is used to determine if a set of Credentials are authorized.
Required Methods§
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", so this trait is not object safe.