pub trait PublicKeySource {
type Error: Error + Send + 'static;
// Required method
fn get_public_key(
&self,
key: &str,
) -> impl Future<Output = Result<Option<String>, Self::Error>> + Send;
}
Required Associated Types§
Required Methods§
fn get_public_key( &self, key: &str, ) -> impl Future<Output = Result<Option<String>, Self::Error>> + Send
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.