Struct openpgp_card::algorithm::AlgorithmInformation
source · pub struct AlgorithmInformation(/* private fields */);
Expand description
“Algorithm Information” enumerates which algorithms the current card supports [Spec section 4.4.3.11]
Modern OpenPGP cards (starting with version v3.4) provide a list of
algorithms they support for each key slot.
The Algorithm Information list specifies which AlgorithmAttributes
can be used on that card (for key generation or key import).
Implementations§
source§impl AlgorithmInformation
impl AlgorithmInformation
pub fn for_keytype(&self, kt: KeyType) -> Vec<&AlgorithmAttributes>
Trait Implementations§
source§impl Clone for AlgorithmInformation
impl Clone for AlgorithmInformation
source§fn clone(&self) -> AlgorithmInformation
fn clone(&self) -> AlgorithmInformation
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 AlgorithmInformation
impl Debug for AlgorithmInformation
source§impl Display for AlgorithmInformation
impl Display for AlgorithmInformation
source§impl PartialEq for AlgorithmInformation
impl PartialEq for AlgorithmInformation
source§fn eq(&self, other: &AlgorithmInformation) -> bool
fn eq(&self, other: &AlgorithmInformation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<&[u8]> for AlgorithmInformation
impl TryFrom<&[u8]> for AlgorithmInformation
impl Eq for AlgorithmInformation
impl StructuralPartialEq for AlgorithmInformation
Auto Trait Implementations§
impl RefUnwindSafe for AlgorithmInformation
impl Send for AlgorithmInformation
impl Sync for AlgorithmInformation
impl Unpin for AlgorithmInformation
impl UnwindSafe for AlgorithmInformation
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