Skip to main content

AlgorithmSelection

Trait AlgorithmSelection 

Source
pub trait AlgorithmSelection<M, O>: SignatureAlgorithmType {
    // Required method
    fn select_algorithm(
        verification_method: &M,
        options: &O,
    ) -> Result<Self::Instance, AlgorithmSelectionError>;
}

Required Methods§

Source

fn select_algorithm( verification_method: &M, options: &O, ) -> Result<Self::Instance, AlgorithmSelectionError>

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.

Implementations on Foreign Types§

Source§

impl<M, O> AlgorithmSelection<M, O> for ES256

Source§

fn select_algorithm( _verification_method: &M, _options: &O, ) -> Result<Self, AlgorithmSelectionError>

Source§

impl<M, O> AlgorithmSelection<M, O> for ES256K

Source§

fn select_algorithm( _verification_method: &M, _options: &O, ) -> Result<Self, AlgorithmSelectionError>

Source§

impl<M, O> AlgorithmSelection<M, O> for ES256KR

Source§

fn select_algorithm( _verification_method: &M, _options: &O, ) -> Result<Self, AlgorithmSelectionError>

Source§

impl<M, O> AlgorithmSelection<M, O> for ESBlake2b

Source§

fn select_algorithm( _verification_method: &M, _options: &O, ) -> Result<Self, AlgorithmSelectionError>

Source§

impl<M, O> AlgorithmSelection<M, O> for EdBlake2b

Source§

fn select_algorithm( _verification_method: &M, _options: &O, ) -> Result<Self, AlgorithmSelectionError>

Source§

impl<M, O> AlgorithmSelection<M, O> for EdDSA

Source§

fn select_algorithm( _verification_method: &M, _options: &O, ) -> Result<Self, AlgorithmSelectionError>

Source§

impl<M: JwkVerificationMethod, O> AlgorithmSelection<M, O> for Algorithm

Source§

impl<M: JwkVerificationMethod, O> AlgorithmSelection<M, O> for Algorithm

Source§

fn select_algorithm( verification_method: &M, _options: &O, ) -> Result<Self, AlgorithmSelectionError>

Source§

impl<O> AlgorithmSelection<Multikey, O> for ES256OrES384

Source§

fn select_algorithm( verification_method: &Multikey, _options: &O, ) -> Result<Self, AlgorithmSelectionError>

Implementors§