Trait Authorizer
pub trait Authorizer<C>:
Send
+ Sync
+ 'static {
type Error: Send + 'static;
// Required method
fn authorize(
&self,
credentials: C,
) -> impl Future<Output = AuthorizeResult<C, Self::Error>> + Send;
}Available on crate feature
net only.Expand description
The Authorizer trait is used to determine if the given credentials are authorized.
Required Associated Types§
Required Methods§
Authorize the given credentials.
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.