#[non_exhaustive]pub enum Algorithm {
EcdsaNistP256,
EcdsaNistP384,
EcdsaSecp256k1,
Ed25519,
}
Expand description
Signature algorithms.
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.
EcdsaNistP256
Available on crate feature
nistp256
only.ECDSA with NIST P-256.
EcdsaNistP384
Available on crate feature
nistp384
only.ECDSA with NIST P-384.
EcdsaSecp256k1
Available on crate feature
secp256k1
only.ECDSA with secp256k1.
Ed25519
Available on crate feature
ed25519
only.Ed25519.
Implementations§
Trait Implementations§
source§impl Ord for Algorithm
impl Ord for Algorithm
source§impl PartialEq<Algorithm> for Algorithm
impl PartialEq<Algorithm> for Algorithm
source§impl PartialOrd<Algorithm> for Algorithm
impl PartialOrd<Algorithm> for Algorithm
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Algorithm
impl Eq for Algorithm
impl StructuralEq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
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