Trait tower_jwt::DecodingKeyFn
source · 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§
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.