pub trait CredentialProvider {
type Error;
// Required method
fn credentials<'a>(
&'a mut self,
authority: &str,
scope: Option<&str>,
) -> Result<Option<Credentials<'a>>, Self::Error>;
}Required Associated Types§
Required Methods§
fn credentials<'a>( &'a mut self, authority: &str, scope: Option<&str>, ) -> Result<Option<Credentials<'a>>, Self::Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".