Skip to main content

Authenticator

Trait Authenticator 

Source
pub trait Authenticator: Send + Sync {
    // Required method
    fn authenticate(&self, username: &str, password: &str) -> AuthResult<()>;
}
Expand description

Authentication trait

Required Methods§

Source

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".

Implementors§