Struct webauthn_authenticator_rs::nfc::NFCTransport
source · pub struct NFCTransport { /* private fields */ }Available on crate feature
nfc only.Expand description
Wrapper for PC/SC context
Implementations§
source§impl NFCTransport
impl NFCTransport
sourcepub fn new(scope: Scope) -> Result<Self, WebauthnCError>
pub fn new(scope: Scope) -> Result<Self, WebauthnCError>
Creates a new NFCTransport instance in a given Scope.
Example:
use pcsc::Scope;
use webauthn_authenticator_rs::nfc::NFCTransport;
let reader = NFCTransport::new(Scope::User);
// TODO: Handle errorsThis returns an error if the smart card service is unavailable.
Trait Implementations§
source§impl Debug for NFCTransport
impl Debug for NFCTransport
source§impl<'b> Transport<'b> for NFCTransport
impl<'b> Transport<'b> for NFCTransport
source§fn watch<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<BoxStream<'_, TokenEvent<Self::Token>>, WebauthnCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn watch<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<BoxStream<'_, TokenEvent<Self::Token>>, WebauthnCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Available on crate feature
ctap2 only.Auto Trait Implementations§
impl Freeze for NFCTransport
impl RefUnwindSafe for NFCTransport
impl Send for NFCTransport
impl Sync for NFCTransport
impl Unpin for NFCTransport
impl UnwindSafe for NFCTransport
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