pub trait DecodingKeyFn: Send + Sync + Clone {
    type Error: Error + Send;

    // Required method
    fn decoding_key<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<DecodingKey, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait to get a decoding key asynchronously

Required Associated Types§

Required Methods§

source

fn decoding_key<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<DecodingKey, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl DecodingKeyFn for DecodingKey

§

type Error = Infallible

source§

fn decoding_key<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<DecodingKey, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

source§

impl<F, O> DecodingKeyFn for F
where F: Fn() -> O + Sync + Send + Clone, O: Future<Output = DecodingKey> + Send,