TokenProvider

Trait TokenProvider 

Source
pub trait TokenProvider:
    Send
    + Sync
    + 'static {
    // Required method
    fn get_token(&self) -> impl Future<Output = Result<impl Token>> + Send;
}
Expand description

Provides authentication tokens for S3-compatible requests.

Required Methods§

Source

fn get_token(&self) -> impl Future<Output = Result<impl Token>> + Send

Returns a fresh token, fetching or refreshing it as needed.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§