Skip to main content

ProvideCredentialDyn

Trait ProvideCredentialDyn 

Source
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,
    ) -> BoxedFuture<'a, Result<Option<Self::Credential>>>;
}
Expand description

ProvideCredentialDyn is the dyn version of ProvideCredential.

Required Associated Types§

Source

type Credential: Send + Sync + Unpin + 'static

Credential returned by this loader.

Required Methods§

Implementors§