Trait panorama_imap::client::auth::Auth[][src]

pub trait Auth {
#[must_use]    fn perform_auth<'async_trait>(
        self,
        client: ClientUnauthenticated
    ) -> Pin<Box<dyn Future<Output = Result<ClientAuthenticated>> + Send + 'async_trait>>
    where
        Self: 'async_trait
; fn convert_client(client: ClientUnauthenticated) -> ClientAuthenticated { ... } }

Required methods

#[must_use]fn perform_auth<'async_trait>(
    self,
    client: ClientUnauthenticated
) -> Pin<Box<dyn Future<Output = Result<ClientAuthenticated>> + Send + 'async_trait>> where
    Self: 'async_trait, 
[src]

Performs authentication, consuming the client

Loading content...

Provided methods

fn convert_client(client: ClientUnauthenticated) -> ClientAuthenticated[src]

Converts the wrappers around the client once the authentication has happened. Should only be called by the perform_auth function.

Loading content...

Implementors

impl Auth for Plain[src]

Loading content...