pub trait AuthMethod: Send + Sync {
// Required method
fn login<'a>(
&'a self,
client: &'a VaultClient,
) -> impl Future<Output = Result<AuthInfo, VaultError>> + Send + 'a;
}Expand description
Pluggable authentication method
Implementors store their own credentials and produce an AuthInfo on login
Required Methods§
fn login<'a>( &'a self, client: &'a VaultClient, ) -> impl Future<Output = Result<AuthInfo, VaultError>> + Send + 'a
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.