pub trait Authenticator: Send + Sync {
// Required method
fn authenticate(&self, username: &str, password: &str) -> AuthResult<()>;
}Expand description
Authentication trait
Required Methods§
fn authenticate(&self, username: &str, password: &str) -> AuthResult<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".