Trait PublicKeySource

Source
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§

Source

type Error: Error + Send + 'static

Required Methods§

Source

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.

Implementations on Foreign Types§

Source§

impl PublicKeySource for Client

Source§

type Error = Error

Source§

async fn get_public_key(&self, key: &str) -> Result<Option<String>, Self::Error>

Implementors§