Trait libunftp::auth::Authenticator [−][src]
pub trait Authenticator<User>: Sync + Send + Debug where
User: UserDetail, { #[must_use] fn authenticate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
username: &'life1 str,
password: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<User, AuthenticationError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait; fn name(&self) -> &str { ... } }
Expand description
Defines the requirements for Authentication implementations
Required methods
#[must_use]fn authenticate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
username: &'life1 str,
password: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<User, AuthenticationError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]fn authenticate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
username: &'life1 str,
password: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<User, AuthenticationError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]Authenticate the given user with the given password.
Provided methods
Implementors
impl Authenticator<DefaultUser> for AnonymousAuthenticator
[src]
impl Authenticator<DefaultUser> for AnonymousAuthenticator
[src]fn authenticate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_username: &'life1 str,
_password: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<DefaultUser, AuthenticationError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_username: &'life1 str,
_password: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<DefaultUser, AuthenticationError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,