IntoKey

Trait IntoKey 

Source
pub trait IntoKey {
    // Required method
    fn get_key(
        &self,
    ) -> impl Future<Output = Result<SecretKey<NistP256>, KeyError>> + Send;
}
Expand description

A trait for getting a key from a source. See IntoKey::get_key for more details.

Required Methods§

Source

fn get_key( &self, ) -> impl Future<Output = Result<SecretKey<NistP256>, KeyError>> + Send

Get a key from the IntoKey source.

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.

Implementors§

Source§

impl IntoKey for JwtUser

Source§

impl IntoKey for PrivateKey

Source§

impl<F, Fut> IntoKey for FnKey<F>
where F: Fn() -> Fut, Fut: Future<Output = Result<SecretKey<NistP256>, KeyError>> + Send,

Blanket implementation for the FnKey wrapper.