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

Represents an interface for authenticating with a server.

Required Methods

Performs authentication by leveraging the handler for any received challenge.

Implementors