Struct webauthn_authenticator_rs::usb::USBToken
source · pub struct USBToken { /* private fields */ }Available on crate feature
usb only.Trait Implementations§
source§impl Token for USBToken
impl Token for USBToken
§type Id = <USBDeviceInfoImpl as USBDeviceInfo>::Id
type Id = <USBDeviceInfoImpl as USBDeviceInfo>::Id
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 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,
Available on crate feature
ctap2 only.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,
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.
Available on crate feature
ctap2 only.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 RefUnwindSafe for USBToken
impl Send for USBToken
impl Sync for USBToken
impl Unpin for USBToken
impl UnwindSafe for USBToken
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