[][src]Trait twitch_irc::login::LoginCredentials

pub trait LoginCredentials: Debug + Send + Sync + 'static {
    type Error: Send + Sync + Debug + Display;
#[must_use]    fn get_credentials<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<CredentialsPair, Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Encapsulates logic for getting the credentials to log into chat, whenever a new connection is made.

Associated Types

type Error: Send + Sync + Debug + Display

Error type that can occur when trying to fetch the credentials.

Loading content...

Required methods

#[must_use]fn get_credentials<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<CredentialsPair, Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Get a fresh set of credentials to be used right-away.

Loading content...

Implementors

impl LoginCredentials for StaticLoginCredentials[src]

type Error = Infallible

impl<S: TokenStorage> LoginCredentials for RefreshingLoginCredentials<S>[src]

type Error = RefreshingLoginError<S>

Loading content...