pub trait KeySource: Clone {
    type Error: Display + Debug;

    // Required method
    fn load_public_key<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 Key
    ) -> Pin<Box<dyn Future<Output = Result<PublicKey, KeySourceError<Self::Error>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

A source of CSAF public keys

Required Associated Types§

Required Methods§

source

fn load_public_key<'life0, 'life1, 'async_trait>( &'life0 self, key: &'life1 Key ) -> Pin<Box<dyn Future<Output = Result<PublicKey, KeySourceError<Self::Error>>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§