#[non_exhaustive]pub enum SigningAlgo {
Rsa,
EcP256,
EcP384,
}Expand description
An enum for all digital signature algorithms supported by the crate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Rsa
PKCS#1 v1.5 RSA algorithm.
EcP256
ECDSA with NIST P-256 curve.
EcP384
ECDSA with NIST P-384 curve.
Trait Implementations§
Source§impl Clone for SigningAlgo
impl Clone for SigningAlgo
Source§fn clone(&self) -> SigningAlgo
fn clone(&self) -> SigningAlgo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SigningAlgo
impl Debug for SigningAlgo
Source§impl Display for SigningAlgo
impl Display for SigningAlgo
Source§impl Hash for SigningAlgo
impl Hash for SigningAlgo
Source§impl PartialEq for SigningAlgo
impl PartialEq for SigningAlgo
Source§fn eq(&self, other: &SigningAlgo) -> bool
fn eq(&self, other: &SigningAlgo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SigningAlgo
impl Eq for SigningAlgo
impl StructuralPartialEq for SigningAlgo
Auto Trait Implementations§
impl Freeze for SigningAlgo
impl RefUnwindSafe for SigningAlgo
impl Send for SigningAlgo
impl Sync for SigningAlgo
impl Unpin for SigningAlgo
impl UnsafeUnpin for SigningAlgo
impl UnwindSafe for SigningAlgo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more