#[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 PartialOrd for Algorithm
impl PartialOrd for Algorithm
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
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