pub trait Authenticate {
    // Required method
    fn authenticate<'life0, 'async_trait>(
        &'life0 mut self,
        handler: impl 'async_trait + AuthHandler + Send
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Represents an interface for authenticating with a server.

Required Methods§

source

fn authenticate<'life0, 'async_trait>( &'life0 mut self, handler: impl 'async_trait + AuthHandler + Send ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Performs authentication by leveraging the handler for any received challenge.

Implementors§