Struct webauthn_authenticator_rs::nfc::NFCCard
source · [−]pub struct NFCCard {
pub atr: Atr,
/* private fields */
}Fields
atr: AtrImplementations
sourceimpl NFCCard
impl NFCCard
pub fn new(card_ref: Card) -> NFCCard
sourcepub fn transmit(
&self,
request: &ISO7816RequestAPDU,
form: &ISO7816LengthForm
) -> Result<ISO7816ResponseAPDU, WebauthnCError>
pub fn transmit(
&self,
request: &ISO7816RequestAPDU,
form: &ISO7816LengthForm
) -> Result<ISO7816ResponseAPDU, WebauthnCError>
Transmits a single ISO 7816-4 APDU to the card.
sourcepub fn transmit_chunks(
&self,
requests: &[ISO7816RequestAPDU]
) -> Result<ISO7816ResponseAPDU, WebauthnCError>
pub fn transmit_chunks(
&self,
requests: &[ISO7816RequestAPDU]
) -> Result<ISO7816ResponseAPDU, WebauthnCError>
Transmit multiple chunks of data to the card, and handle a chunked response. All requests must be transmittable in short form.
Trait Implementations
sourceimpl Token for NFCCard
impl Token for NFCCard
sourcefn transmit<'a, C, R>(&self, cmd: C) -> Result<R, WebauthnCError>where
C: CBORCommand<Response = R>,
R: CBORResponse,
fn transmit<'a, C, R>(&self, cmd: C) -> Result<R, WebauthnCError>where
C: CBORCommand<Response = R>,
R: CBORResponse,
Transmit a CBOR message to a token
sourcefn select_any(self) -> Result<Selected<Self>, WebauthnCError>
fn select_any(self) -> Result<Selected<Self>, WebauthnCError>
Selects any available CTAP applet on the Token
Auto Trait Implementations
impl RefUnwindSafe for NFCCard
impl Send for NFCCard
impl Sync for NFCCard
impl Unpin for NFCCard
impl UnwindSafe for NFCCard
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more