[][src]Trait libunftp::auth::Authenticator

pub trait Authenticator<U> {
    fn authenticate(
        &self,
        username: &str,
        password: &str
    ) -> Box<dyn Future<Item = U, Error = ()> + Send>; }

Async authenticator interface (error reporting not supported yet)

Required methods

fn authenticate(
    &self,
    username: &str,
    password: &str
) -> Box<dyn Future<Item = U, Error = ()> + Send>

Authenticate the given user with the given password.

Loading content...

Implementors

impl Authenticator<AnonymousUser> for AnonymousAuthenticator[src]

Loading content...