Skip to main content

ProvideCredentialDyn

Trait ProvideCredentialDyn 

pub trait ProvideCredentialDyn:
    Debug
    + Send
    + Sync
    + Unpin
    + 'static {
    type Credential: Send + Sync + Unpin + 'static;

    // Required method
    fn provide_credential_dyn<'a>(
        &'a self,
        ctx: &'a Context,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Self::Credential>, Error>> + Send + 'a>>;
}
Available on crate feature reqsign only.
Expand description

ProvideCredentialDyn is the dyn version of ProvideCredential.

Required Associated Types§

type Credential: Send + Sync + Unpin + 'static

Credential returned by this loader.

Required Methods§

fn provide_credential_dyn<'a>( &'a self, ctx: &'a Context, ) -> Pin<Box<dyn Future<Output = Result<Option<Self::Credential>, Error>> + Send + 'a>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§