pub struct USBTransport { /* private fields */ }Available on crate features
usb only.Implementations§
Source§impl USBTransport
impl USBTransport
pub async fn new() -> Result<Self, WebauthnCError>
Trait Implementations§
Source§impl Debug for USBTransport
impl Debug for USBTransport
Source§impl<'b> Transport<'b> for USBTransport
impl<'b> Transport<'b> for USBTransport
Source§fn tokens<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Token>, WebauthnCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Available on crate features ctap2 only.
fn tokens<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Token>, WebauthnCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
ctap2 only.Gets a list of attached USB HID FIDO tokens.
Any un-openable devices will be silently ignored.
§Platform-specific issues
§Linux
systemd (udev) v252 and later automatically tag USB HID FIDO tokens
and set permissions based on the f1d0 usage page, which should work
with any FIDO-compliant token.
Previously, most distributions used a fixed list of device IDs, which can be a problem for new or esoteric tokens.
§Windows
On Windows 10 build 1903 or later, this will not return any devices unless the program is run as Administrator.
Auto Trait Implementations§
impl Freeze for USBTransport
impl RefUnwindSafe for USBTransport
impl Send for USBTransport
impl Sync for USBTransport
impl Unpin for USBTransport
impl UnwindSafe for USBTransport
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