pub enum AnyToken {
Stub,
Bluetooth(BluetoothToken),
Nfc(NFCCard),
Usb(USBToken),
}Available on crate feature
ctap2 only.Expand description
AnyToken abstracts calls to physical authenticators.
Variants§
Stub
No-op stub entry, never used.
Bluetooth(BluetoothToken)
Available on crate feature
bluetooth only.Nfc(NFCCard)
Available on crate feature
nfc only.Usb(USBToken)
Available on crate feature
usb only.Trait Implementations§
source§impl Token for AnyToken
impl Token for AnyToken
type Id = AnyTokenId
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,
Transmits a command on the underlying transport. Read more
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,
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,
Initializes the Token
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,
Closes the Token
source§fn get_transport(&self) -> AuthenticatorTransport
fn get_transport(&self) -> AuthenticatorTransport
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,
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,
Transmit a CBOR message to a token, and deserialises the response.
Auto Trait Implementations§
impl !RefUnwindSafe for AnyToken
impl Send for AnyToken
impl Sync for AnyToken
impl Unpin for AnyToken
impl !UnwindSafe for AnyToken
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
§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