Struct webauthn_authenticator_rs::nfc::NFCCard
source · pub struct NFCCard {
pub atr: Atr,
/* private fields */
}
Available on crate feature
nfc
only.Fields§
§atr: Atr
Implementations§
source§impl NFCCard
impl NFCCard
pub fn new( ctx: &Context, reader_name: &CStr, atr: &[u8] ) -> Result<NFCCard, WebauthnCError>
sourcepub fn transmit(
&self,
request: &ISO7816RequestAPDU,
form: &ISO7816LengthForm
) -> Result<ISO7816ResponseAPDU, WebauthnCError>
Available on crate feature nfc_raw_transmit
only.
pub fn transmit( &self, request: &ISO7816RequestAPDU, form: &ISO7816LengthForm ) -> Result<ISO7816ResponseAPDU, WebauthnCError>
nfc_raw_transmit
only.Transmits a single ISO 7816-4 APDU to the card.
This API is only intended for conformance testing.
sourcepub fn reader_name(&self) -> Option<&str>
pub fn reader_name(&self) -> Option<&str>
Gets the name of the card reader being used to communicate with this token.
Trait Implementations§
source§impl Token for NFCCard
impl Token for NFCCard
source§fn init<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), WebauthnCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Available on crate feature ctap2
only.
fn init<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), WebauthnCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
ctap2
only.Available on crate feature
ctap2
only.source§fn transmit_raw<'life0, 'life1, 'life2, 'async_trait, U>(
&'life0 mut self,
cmd: &'life1 [u8],
_ui: &'life2 U
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, WebauthnCError>> + Send + 'async_trait>>where
U: UiCallback + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn transmit_raw<'life0, 'life1, 'life2, 'async_trait, U>(
&'life0 mut self,
cmd: &'life1 [u8],
_ui: &'life2 U
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, WebauthnCError>> + Send + 'async_trait>>where
U: UiCallback + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Available on crate feature
ctap2
only.Transmits a command on the underlying transport. Read more
source§fn close<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), WebauthnCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn close<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), WebauthnCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Available on crate feature
ctap2
only.Closes the Token
source§fn get_transport(&self) -> AuthenticatorTransport
fn get_transport(&self) -> AuthenticatorTransport
Available on crate feature
ctap2
only.Gets the transport layer used for communication with this token.
source§fn cancel<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), WebauthnCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn cancel<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), WebauthnCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Available on crate feature
ctap2
only.Cancels a pending request.
source§fn transmit<'a, 'life0, 'life1, 'async_trait, C, R, U>(
&'life0 mut self,
cmd: C,
ui: &'life1 U
) -> Pin<Box<dyn Future<Output = Result<R, WebauthnCError>> + Send + 'async_trait>>where
C: CBORCommand<Response = R> + 'async_trait,
R: CBORResponse + 'async_trait,
U: UiCallback + 'async_trait,
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn transmit<'a, 'life0, 'life1, 'async_trait, C, R, U>(
&'life0 mut self,
cmd: C,
ui: &'life1 U
) -> Pin<Box<dyn Future<Output = Result<R, WebauthnCError>> + Send + 'async_trait>>where
C: CBORCommand<Response = R> + 'async_trait,
R: CBORResponse + 'async_trait,
U: UiCallback + 'async_trait,
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Available on crate feature
ctap2
only.Transmit a CBOR message to a token, and deserialises the response.
Auto Trait Implementations§
impl !Freeze for NFCCard
impl RefUnwindSafe for NFCCard
impl Send for NFCCard
impl Sync for NFCCard
impl Unpin for NFCCard
impl UnwindSafe for NFCCard
Blanket Implementations§
source§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
source§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
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