libwebauthn 0.5.1

FIDO2 (WebAuthn) and FIDO U2F platform library for Linux written in Rust
Documentation
use std::fmt::{Display, Formatter};

pub mod channel;
pub mod commands;
pub mod device;
#[cfg(feature = "nfc-backend-libnfc")]
pub mod libnfc;
#[cfg(feature = "nfc-backend-pcsc")]
pub mod pcsc;

pub use device::{get_nfc_device, is_nfc_available};

use super::Transport;

pub struct Nfc {}
impl Transport for Nfc {}
unsafe impl Send for Nfc {}
unsafe impl Sync for Nfc {}

impl Display for Nfc {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "NFC")
    }
}

#[derive(Clone, Debug)]
pub struct Context {}

impl Display for Context {
    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
        write!(f, "context")
    }
}

unsafe impl Send for Context {}
unsafe impl Sync for Context {}
impl Copy for Context {}