pub struct LazyCachingCredentialsProvider { /* private fields */ }
Expand description
LazyCachingCredentialsProvider
implements ProvideCredentials
by caching
credentials that it loads by calling a user-provided ProvideCredentials
implementation.
For example, you can provide an ProvideCredentials
implementation that calls
AWS STS’s AssumeRole operation to get temporary credentials, and LazyCachingCredentialsProvider
will cache those credentials until they expire.
Implementations
Trait Implementations
sourceimpl ProvideCredentials for LazyCachingCredentialsProvider
impl ProvideCredentials for LazyCachingCredentialsProvider
sourcefn provide_credentials<'a>(&'a self) -> ProvideCredentials<'_>where
Self: 'a,
fn provide_credentials<'a>(&'a self) -> ProvideCredentials<'_>where
Self: 'a,
Returns a future that provides credentials.
Auto Trait Implementations
impl !RefUnwindSafe for LazyCachingCredentialsProvider
impl Send for LazyCachingCredentialsProvider
impl Sync for LazyCachingCredentialsProvider
impl Unpin for LazyCachingCredentialsProvider
impl !UnwindSafe for LazyCachingCredentialsProvider
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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