#[non_exhaustive]pub enum KeyMechanism {
Show 20 variants
RsaDecryptionRaw,
RsaDecryptionPkcs1,
RsaDecryptionOaepMd5,
RsaDecryptionOaepSha1,
RsaDecryptionOaepSha224,
RsaDecryptionOaepSha256,
RsaDecryptionOaepSha384,
RsaDecryptionOaepSha512,
RsaSignaturePkcs1,
RsaSignaturePssMd5,
RsaSignaturePssSha1,
RsaSignaturePssSha224,
RsaSignaturePssSha256,
RsaSignaturePssSha384,
RsaSignaturePssSha512,
EdDsaSignature,
EcdsaSignature,
Bip340Signature,
AesEncryptionCbc,
AesDecryptionCbc,
}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.
RsaDecryptionRaw
RsaDecryptionPkcs1
RsaDecryptionOaepMd5
RsaDecryptionOaepSha1
RsaDecryptionOaepSha224
RsaDecryptionOaepSha256
RsaDecryptionOaepSha384
RsaDecryptionOaepSha512
RsaSignaturePkcs1
RsaSignaturePssMd5
RsaSignaturePssSha1
RsaSignaturePssSha224
RsaSignaturePssSha256
RsaSignaturePssSha384
RsaSignaturePssSha512
EdDsaSignature
EcdsaSignature
Bip340Signature
AesEncryptionCbc
AesDecryptionCbc
Trait Implementations§
Source§impl Clone for KeyMechanism
impl Clone for KeyMechanism
Source§fn clone(&self) -> KeyMechanism
fn clone(&self) -> KeyMechanism
Returns a duplicate of the value. Read more
1.0.0 · 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 KeyMechanism
impl Debug for KeyMechanism
Source§impl Default for KeyMechanism
impl Default for KeyMechanism
Source§fn default() -> KeyMechanism
fn default() -> KeyMechanism
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KeyMechanism
impl<'de> Deserialize<'de> for KeyMechanism
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for KeyMechanism
impl Display for KeyMechanism
Source§impl Hash for KeyMechanism
impl Hash for KeyMechanism
Source§impl Ord for KeyMechanism
impl Ord for KeyMechanism
Source§fn cmp(&self, other: &KeyMechanism) -> Ordering
fn cmp(&self, other: &KeyMechanism) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for KeyMechanism
impl PartialEq for KeyMechanism
Source§impl PartialOrd for KeyMechanism
impl PartialOrd for KeyMechanism
Source§impl Serialize for KeyMechanism
impl Serialize for KeyMechanism
impl Copy for KeyMechanism
impl Eq for KeyMechanism
impl StructuralPartialEq for KeyMechanism
Auto Trait Implementations§
impl Freeze for KeyMechanism
impl RefUnwindSafe for KeyMechanism
impl Send for KeyMechanism
impl Sync for KeyMechanism
impl Unpin for KeyMechanism
impl UnwindSafe for KeyMechanism
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