[−][src]Trait twitch_irc::login::LoginCredentials
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.
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,
&'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.
Implementors
impl LoginCredentials for StaticLoginCredentials
[src]
type Error = Infallible
fn get_credentials<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<CredentialsPair, Infallible>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<CredentialsPair, Infallible>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl<S: TokenStorage> LoginCredentials for RefreshingLoginCredentials<S>
[src]
type Error = RefreshingLoginError<S>
fn get_credentials<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<CredentialsPair, RefreshingLoginError<S>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<CredentialsPair, RefreshingLoginError<S>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,