pub struct EnvCredentialsProvider { /* private fields */ }Expand description
Provider for authenticating to AWS with MFA using environment variables
Implementationsยง
Trait Implementationsยง
Sourceยงimpl CredentialsProvider for EnvCredentialsProvider
impl CredentialsProvider for EnvCredentialsProvider
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 environment variables 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::environment::EnvironmentVariableCredentialsProvider) and return new Credentials
Auto Trait Implementationsยง
impl Freeze for EnvCredentialsProvider
impl RefUnwindSafe for EnvCredentialsProvider
impl Send for EnvCredentialsProvider
impl Sync for EnvCredentialsProvider
impl Unpin for EnvCredentialsProvider
impl UnwindSafe for EnvCredentialsProvider
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
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.