Function devices::usb::backend::fido_backend::fido_provider::attach_security_key
source · pub fn attach_security_key(
hidraw: File,
event_loop: Arc<EventLoop>,
device_state: DeviceState
) -> Result<(Arc<Mutex<BackendDeviceType>>, Arc<dyn EventHandler>)>
Expand description
Utility function to attach a security key device to the backend provider. It initializes a
FidoPassthroughDevice
and returns it with its EventHandler
to the backend.