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 errors
This returns an error if the smart card service is unavailable.
Trait Implementations§
Source§impl Debug for NFCTransport
impl Debug for NFCTransport
Source§impl Transport<'_> for NFCTransport
impl Transport<'_> 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, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> 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