Trait Authenticate

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§