pub trait JweAlgorithm:
Debug
+ Send
+ Sync {
// Required methods
fn name(&self) -> &str;
fn box_clone(&self) -> Box<dyn JweAlgorithm>;
}Expand description
Represent a algorithm of JWE alg header claim.
Required Methods§
fn box_clone(&self) -> Box<dyn JweAlgorithm>
Trait Implementations§
Source§impl Clone for Box<dyn JweAlgorithm>
impl Clone for Box<dyn JweAlgorithm>
impl Eq for Box<dyn JweAlgorithm>
Source§impl PartialEq for Box<dyn JweAlgorithm>
impl PartialEq for Box<dyn JweAlgorithm>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".