pub trait AuthProvider:
Clone
+ Send
+ Sync
+ 'static {
type Error: Into<CoolError> + Send;
// Required method
fn authenticate(
&self,
request: &RequestContext<'_>,
) -> impl Future<Output = Result<CoolContext, Self::Error>> + Send;
}Required Associated Types§
Required Methods§
fn authenticate( &self, request: &RequestContext<'_>, ) -> impl Future<Output = Result<CoolContext, Self::Error>> + Send
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.