pub struct U2f { /* private fields */ }Implementations§
Source§impl U2f
impl U2f
pub fn new(app_id: String) -> Self
pub fn generate_challenge(&self) -> Result<Challenge, U2fError>
pub fn request( &self, challenge: Challenge, registrations: Vec<Registration>, ) -> Result<U2fRegisterRequest, U2fError>
pub fn register_response( &self, challenge: Challenge, response: RegisterResponse, ) -> Result<Registration, U2fError>
pub fn sign_request( &self, challenge: Challenge, registrations: Vec<Registration>, ) -> U2fSignRequest
pub fn sign_response( &self, challenge: Challenge, reg: Registration, sign_resp: SignResponse, counter: u32, ) -> Result<u32, U2fError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for U2f
impl RefUnwindSafe for U2f
impl Send for U2f
impl Sync for U2f
impl Unpin for U2f
impl UnwindSafe for U2f
Blanket Implementations§
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