pub trait ProvideToken:
Send
+ Sync
+ Debug {
// Required method
fn provide_token<'a>(&'a self) -> ProvideToken<'a> ⓘ
where Self: 'a;
}
Expand description
Access Token Provider
Required Methods§
Sourcefn provide_token<'a>(&'a self) -> ProvideToken<'a> ⓘwhere
Self: 'a,
fn provide_token<'a>(&'a self) -> ProvideToken<'a> ⓘwhere
Self: 'a,
Returns a future that provides an access token.
Trait Implementations§
Source§fn as_ref(&self) -> &(dyn ProvideToken + 'static)
fn as_ref(&self) -> &(dyn ProvideToken + 'static)
Converts this type into a shared reference of the (usually inferred) input type.