pub struct ClientCredentialsProvider { /* private fields */ }Implementations§
Source§impl ClientCredentialsProvider
impl ClientCredentialsProvider
Sourcepub async fn token(&self) -> CredentialResult<Option<Token>>
pub async fn token(&self) -> CredentialResult<Option<Token>>
A usable token, or None when this provider has no credentials to offer.
Trait Implementations§
Source§impl Debug for ClientCredentialsProvider
impl Debug for ClientCredentialsProvider
Source§impl From<ClientCredentialsProvider> for TokenSource
impl From<ClientCredentialsProvider> for TokenSource
Source§fn from(provider: ClientCredentialsProvider) -> Self
fn from(provider: ClientCredentialsProvider) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ClientCredentialsProvider
impl !UnwindSafe for ClientCredentialsProvider
impl Freeze for ClientCredentialsProvider
impl Send for ClientCredentialsProvider
impl Sync for ClientCredentialsProvider
impl Unpin for ClientCredentialsProvider
impl UnsafeUnpin for ClientCredentialsProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more