Struct aws_mfa::FileCredentialsProvider
source · pub struct FileCredentialsProvider { /* private fields */ }Expand description
Provider for authenticating to AWS with MFA using config and credentials files
Implementations§
Trait Implementations§
source§impl CredentialsProvider for FileCredentialsProvider
impl CredentialsProvider for FileCredentialsProvider
source§fn validate<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Option<Credentials>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn validate<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Option<Credentials>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Validate and return current Credentials from credentials file unless expired
source§fn authenticate<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Credentials, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn authenticate<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Credentials, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Authenticate using aws_config::profile::ProfileFileCredentialsProvider and return new Credentials
Auto Trait Implementations§
impl RefUnwindSafe for FileCredentialsProvider
impl Send for FileCredentialsProvider
impl Sync for FileCredentialsProvider
impl Unpin for FileCredentialsProvider
impl UnwindSafe for FileCredentialsProvider
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.