Skip to main content

PublicKeySource

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".

Implementations on Foreign Types§

Source§

impl PublicKeySource for Client

Available on crate feature reqwest only.
Source§

type Error = Error

Source§

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

Implementors§