pub struct ApplicationIdentifier { /* private fields */ }Expand description
Application Identifier (AID) [Spec section 4.2.1]
Implementations§
Source§impl ApplicationIdentifier
impl ApplicationIdentifier
pub fn application(&self) -> u8
pub fn version(&self) -> u16
pub fn manufacturer(&self) -> u16
pub fn serial(&self) -> u32
Sourcepub fn manufacturer_name(&self) -> &'static str
pub fn manufacturer_name(&self) -> &'static str
Mapping of manufacturer id to a name, data from: https://en.wikipedia.org/wiki/OpenPGP_card [2022-04-07]
Also see: https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blob;f=scd/app-openpgp.c;hb=HEAD#l292
Sourcepub fn ident(&self) -> String
pub fn ident(&self) -> String
This ident is constructed as the concatenation of manufacturer id, a colon, and the card serial (in hexadecimal representation, with uppercase hex digits).
It is a more easily human-readable, shorter form of the full 16-byte AID (“Application Identifier”).
Example: “1234:5678ABCD”.
Trait Implementations§
Source§impl Clone for ApplicationIdentifier
impl Clone for ApplicationIdentifier
Source§fn clone(&self) -> ApplicationIdentifier
fn clone(&self) -> ApplicationIdentifier
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 ApplicationIdentifier
impl Debug for ApplicationIdentifier
Source§impl Display for ApplicationIdentifier
impl Display for ApplicationIdentifier
Source§impl PartialEq for ApplicationIdentifier
impl PartialEq for ApplicationIdentifier
Source§impl TryFrom<&[u8]> for ApplicationIdentifier
impl TryFrom<&[u8]> for ApplicationIdentifier
impl Copy for ApplicationIdentifier
impl Eq for ApplicationIdentifier
impl StructuralPartialEq for ApplicationIdentifier
Auto Trait Implementations§
impl Freeze for ApplicationIdentifier
impl RefUnwindSafe for ApplicationIdentifier
impl Send for ApplicationIdentifier
impl Sync for ApplicationIdentifier
impl Unpin for ApplicationIdentifier
impl UnwindSafe for ApplicationIdentifier
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