pub trait AuthCheckPredicate {
type CheckInfo: Clone + Send + Sync + 'static;
// Required method
fn check(
&self,
username: impl Into<String> + Send,
password: impl Into<String> + Send,
) -> impl Future<Output = Result<Self::CheckInfo>> + Send;
// Provided methods
fn username(&self) -> &str { ... }
fn password(&self) -> &str { ... }
}Required Associated Types§
Required Methods§
fn check( &self, username: impl Into<String> + Send, password: impl Into<String> + Send, ) -> impl Future<Output = Result<Self::CheckInfo>> + Send
Provided Methods§
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.