pub(crate) fn attach_security_key(
hidraw: File,
event_loop: Arc<EventLoop>,
device_state: DeviceState,
) -> Result<(Arc<Mutex<BackendDeviceType>>, Arc<UsbUtilEventHandler>)>Expand description
Utility function to attach a security key device to the backend provider. It initializes a
FidoPassthroughDevice and returns it with its UsbUtilEventHandler to the backend.