pub struct AwsCredentialAdapter {
pub inner: Arc<dyn ProvideCredentials>,
/* private fields */
}
Expand description
Adapt an AWS SDK cred into object_store credentials
Fields§
§inner: Arc<dyn ProvideCredentials>
Implementations§
Source§impl AwsCredentialAdapter
impl AwsCredentialAdapter
pub fn new( provider: Arc<dyn ProvideCredentials>, credentials_refresh_offset: Duration, ) -> Self
Trait Implementations§
Source§impl CredentialProvider for AwsCredentialAdapter
impl CredentialProvider for AwsCredentialAdapter
Source§type Credential = AwsCredential
type Credential = AwsCredential
The type of credential returned by this provider
Source§fn get_credential<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ObjectStoreResult<Arc<Self::Credential>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_credential<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ObjectStoreResult<Arc<Self::Credential>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return a credential
Auto Trait Implementations§
impl Freeze for AwsCredentialAdapter
impl !RefUnwindSafe for AwsCredentialAdapter
impl Send for AwsCredentialAdapter
impl Sync for AwsCredentialAdapter
impl Unpin for AwsCredentialAdapter
impl !UnwindSafe for AwsCredentialAdapter
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.