Skip to main content

CredentialsProvider

Trait CredentialsProvider 

Source
pub trait CredentialsProvider: Send + Sync {
    // Required method
    fn provide_credentials<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Credentials, S3Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Asynchronous source of AWS-compatible credentials.

Required Methods§

Source

fn provide_credentials<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Credentials, S3Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Resolves credentials for a request.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§