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
sourceimpl SharedCredentialsProvider
impl SharedCredentialsProvider
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
sourceimpl AsRef<dyn ProvideCredentials + 'static> for SharedCredentialsProvider
impl AsRef<dyn ProvideCredentials + 'static> for SharedCredentialsProvider
sourcefn 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.
sourceimpl Clone for SharedCredentialsProvider
impl Clone for SharedCredentialsProvider
sourcefn clone(&self) -> SharedCredentialsProvider
fn clone(&self) -> SharedCredentialsProvider
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SharedCredentialsProvider
impl Debug for SharedCredentialsProvider
sourceimpl From<Arc<dyn ProvideCredentials + 'static>> for SharedCredentialsProvider
impl From<Arc<dyn ProvideCredentials + 'static>> for SharedCredentialsProvider
sourcefn from(provider: Arc<dyn ProvideCredentials>) -> Self
fn from(provider: Arc<dyn ProvideCredentials>) -> Self
Converts to this type from the input type.
sourceimpl ProvideCredentials for SharedCredentialsProvider
impl ProvideCredentials for SharedCredentialsProvider
sourcefn provide_credentials<'a>(&'a self) -> ProvideCredentials<'a>ⓘNotable traits for ProvideCredentials<'_>impl Future for ProvideCredentials<'_> type Output = Result;
where
Self: 'a,
fn provide_credentials<'a>(&'a self) -> ProvideCredentials<'a>ⓘNotable traits for ProvideCredentials<'_>impl Future for ProvideCredentials<'_> type Output = Result;
where
Self: 'a,
Returns a future that provides credentials.
Auto Trait Implementations
impl !RefUnwindSafe for SharedCredentialsProvider
impl Send for SharedCredentialsProvider
impl Sync for SharedCredentialsProvider
impl Unpin for SharedCredentialsProvider
impl !UnwindSafe for SharedCredentialsProvider
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more