Skip to main content

JwsAlgorithm

Trait JwsAlgorithm 

Source
pub trait JwsAlgorithm:
    Debug
    + Send
    + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn box_clone(&self) -> Box<dyn JwsAlgorithm>;
}

Required Methods§

Source

fn name(&self) -> &str

Return the “alg” (algorithm) header parameter value of JWS.

Source

fn box_clone(&self) -> Box<dyn JwsAlgorithm>

Trait Implementations§

Source§

impl Clone for Box<dyn JwsAlgorithm>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Eq for Box<dyn JwsAlgorithm>

Source§

impl PartialEq for Box<dyn JwsAlgorithm>

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§