pub struct Pkcs11Mechanism(/* private fields */);Expand description
Opaque PKCS#11 mechanism identifier.
An enum would be incomplete (hundreds of CKM_* values, plus vendor extensions).
A string like "CKM_RSA_PKCS_KEY_PAIR_GEN" is honest about what we expose.
Used only for capability checking (“does this token support X?”), not dispatch.
Implementations§
Trait Implementations§
Source§impl Clone for Pkcs11Mechanism
impl Clone for Pkcs11Mechanism
Source§fn clone(&self) -> Pkcs11Mechanism
fn clone(&self) -> Pkcs11Mechanism
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 Pkcs11Mechanism
impl Debug for Pkcs11Mechanism
Source§impl<'de> Deserialize<'de> for Pkcs11Mechanism
impl<'de> Deserialize<'de> for Pkcs11Mechanism
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 Pkcs11Mechanism
impl Display for Pkcs11Mechanism
Source§impl Hash for Pkcs11Mechanism
impl Hash for Pkcs11Mechanism
Source§impl PartialEq for Pkcs11Mechanism
impl PartialEq for Pkcs11Mechanism
Source§fn eq(&self, other: &Pkcs11Mechanism) -> bool
fn eq(&self, other: &Pkcs11Mechanism) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Pkcs11Mechanism
impl Serialize for Pkcs11Mechanism
impl Eq for Pkcs11Mechanism
impl StructuralPartialEq for Pkcs11Mechanism
Auto Trait Implementations§
impl Freeze for Pkcs11Mechanism
impl RefUnwindSafe for Pkcs11Mechanism
impl Send for Pkcs11Mechanism
impl Sync for Pkcs11Mechanism
impl Unpin for Pkcs11Mechanism
impl UnsafeUnpin for Pkcs11Mechanism
impl UnwindSafe for Pkcs11Mechanism
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