#[non_exhaustive]pub enum AlgorithmAttributes {
Rsa(RsaAttributes),
Ecc(EccAttributes),
Unknown(Vec<u8>),
}
Expand description
Algorithm Attributes [Spec section 4.4.3.9]
AlgorithmAttributes
describes the algorithm settings for a key on the card.
This setting specifies the data format of:
- Key import
- Key generation
- Export of public key data from the card (e.g. after key generation)
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.
Trait Implementations§
source§impl Clone for AlgorithmAttributes
impl Clone for AlgorithmAttributes
source§fn clone(&self) -> AlgorithmAttributes
fn clone(&self) -> AlgorithmAttributes
Returns a copy 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 AlgorithmAttributes
impl Debug for AlgorithmAttributes
source§impl Display for AlgorithmAttributes
impl Display for AlgorithmAttributes
source§impl PartialEq for AlgorithmAttributes
impl PartialEq for AlgorithmAttributes
source§fn eq(&self, other: &AlgorithmAttributes) -> bool
fn eq(&self, other: &AlgorithmAttributes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<&[u8]> for AlgorithmAttributes
impl TryFrom<&[u8]> for AlgorithmAttributes
impl Eq for AlgorithmAttributes
impl StructuralPartialEq for AlgorithmAttributes
Auto Trait Implementations§
impl RefUnwindSafe for AlgorithmAttributes
impl Send for AlgorithmAttributes
impl Sync for AlgorithmAttributes
impl Unpin for AlgorithmAttributes
impl UnwindSafe for AlgorithmAttributes
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