Trait distant_net::common::authentication::Authenticate
source · 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
sourcefn 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,
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,
Performs authentication by leveraging the handler for any received challenge.