Struct aws_types::credentials::SharedCredentialsProvider
source · pub struct SharedCredentialsProvider(_);
Expand description
Credentials Provider wrapper that may be shared
Newtype wrapper around ProvideCredentials that implements Clone using an internal Arc.
Implementations§
sourcepub fn new(provider: impl ProvideCredentials + 'static) -> Self
pub fn new(provider: impl ProvideCredentials + 'static) -> Self
Create a new SharedCredentials provider from ProvideCredentials
The given provider will be wrapped in an internal Arc
. If your
provider is already in an Arc
, use SharedCredentialsProvider::from(provider)
instead.
Trait Implementations§
source§fn as_ref(&self) -> &(dyn ProvideCredentials + 'static)
fn as_ref(&self) -> &(dyn ProvideCredentials + 'static)
Converts this type into a shared reference of the (usually inferred) input type.
source§fn clone(&self) -> SharedCredentialsProvider
fn clone(&self) -> SharedCredentialsProvider
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§fn from(provider: Arc<dyn ProvideCredentials>) -> Self
fn from(provider: Arc<dyn ProvideCredentials>) -> Self
Converts to this type from the input type.
source§fn provide_credentials<'a>(&'a self) -> ProvideCredentials<'a> ⓘwhere
Self: 'a,
fn provide_credentials<'a>(&'a self) -> ProvideCredentials<'a> ⓘwhere
Self: 'a,
Returns a future that provides credentials.