[−][src]Struct rusoto_credential::AutoRefreshingProvider
Wrapper for ProvideAwsCredentials
that caches the credentials returned by the
wrapped provider. Each time the credentials are accessed, they are checked to see if
they have expired, in which case they are retrieved from the wrapped provider again.
In order to access the wrapped provider, for instance to set a timeout, the get_ref
and get_mut
methods can be used.
Methods
impl<P: ProvideAwsCredentials + 'static> AutoRefreshingProvider<P>
[src]
pub fn new(provider: P) -> Result<AutoRefreshingProvider<P>, CredentialsError>
[src]
Create a new AutoRefreshingProvider
around the provided base provider.
pub fn get_ref(&self) -> &P
[src]
Get a shared reference to the wrapped provider.
pub fn get_mut(&mut self) -> &mut P
[src]
Get a mutable reference to the wrapped provider.
This can be used to call set_timeout
on the wrapped
provider.
Trait Implementations
impl<P: ProvideAwsCredentials + 'static> ProvideAwsCredentials for AutoRefreshingProvider<P>
[src]
type Future = AutoRefreshingProviderFuture<P>
The future response value.
fn credentials(&self) -> Self::Future
[src]
impl<P: Debug + ProvideAwsCredentials + 'static> Debug for AutoRefreshingProvider<P> where
P::Future: Debug,
[src]
P::Future: Debug,
Auto Trait Implementations
impl<P> Send for AutoRefreshingProvider<P> where
P: Send,
<P as ProvideAwsCredentials>::Future: Future + Send,
P: Send,
<P as ProvideAwsCredentials>::Future: Future + Send,
impl<P> Sync for AutoRefreshingProvider<P> where
P: Sync,
<P as ProvideAwsCredentials>::Future: Future + Send,
P: Sync,
<P as ProvideAwsCredentials>::Future: Future + Send,
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,