Struct lance_io::object_store::AwsCredentialAdapter
source · 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
§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 !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