pub struct AwsCredentialSource { /* private fields */ }Expand description
Where request signing gets its credentials from. Cheap to clone and safe to share across threads; endpoint credentials are cached between calls.
Implementations§
Source§impl AwsCredentialSource
impl AwsCredentialSource
Sourcepub fn from_env() -> MenteResult<Self>
pub fn from_env() -> MenteResult<Self>
Resolve the source from the environment (see the module docs). Fails when neither static keys nor a container endpoint are configured. No network call is made here.
Sourcepub fn from_env_with(refresh: CredentialRefreshConfig) -> MenteResult<Self>
pub fn from_env_with(refresh: CredentialRefreshConfig) -> MenteResult<Self>
Self::from_env with explicit endpoint refresh settings.
Sourcepub fn fixed(creds: AwsCredentials) -> Self
pub fn fixed(creds: AwsCredentials) -> Self
Always sign with these credentials.
Sourcepub fn credentials(&self) -> MenteResult<AwsCredentials>
pub fn credentials(&self) -> MenteResult<AwsCredentials>
Credentials to sign the next request with. Endpoint credentials come from the cache unless they expire within the refresh window.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AwsCredentialSource
impl !UnwindSafe for AwsCredentialSource
impl Freeze for AwsCredentialSource
impl Send for AwsCredentialSource
impl Sync for AwsCredentialSource
impl Unpin for AwsCredentialSource
impl UnsafeUnpin for AwsCredentialSource
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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 more