pub fn open(serial: u32) -> Result<Self> {
        match YubiKey::open_by_serial(serial.into()){
            Ok(yk) => Ok(Self {
                yk,
            }),
            Err(_) => Err(Error::NoSuchYubikey),
        }
    }
/// Open a Yubikey from a serial
Open a Yubikey from a serial
Open a Yubikey from a serial
pub fn open(serial: u32) -> Result<Self> {
        match YubiKey::open_by_serial(serial.into()){
            Ok(yk) => Ok(Self {
                yk,
            }),
            Err(_) => Err(Error::NoSuchYubikey),
        }
    }
pub fn open ( serial : u32 ) -> Result < Self > { match YubiKey :: open_by_serial ( serial . into ( ) ) { Ok ( yk ) => Ok ( Self { yk , } ) , Err ( _ ) => Err ( Error :: NoSuchYubikey ) , } }
Open a Yubikey from a serial
Open a Yubikey from a serial
serial
u32