[][src]Struct u2f::protocol::U2f

pub struct U2f { /* fields omitted */ }

Methods

impl U2f[src]

pub fn new(app_id: String) -> Self[src]

pub fn generate_challenge(&self) -> Result<Challenge, U2fError>[src]

pub fn request(
    &self,
    challenge: Challenge,
    registrations: Vec<Registration>
) -> Result<U2fRegisterRequest, U2fError>
[src]

pub fn register_response(
    &self,
    challenge: Challenge,
    response: RegisterResponse
) -> Result<Registration, U2fError>
[src]

pub fn sign_request(
    &self,
    challenge: Challenge,
    registrations: Vec<Registration>
) -> U2fSignRequest
[src]

pub fn sign_response(
    &self,
    challenge: Challenge,
    reg: Registration,
    sign_resp: SignResponse,
    counter: u32
) -> Result<u32, U2fError>
[src]

Trait Implementations

impl Clone for U2f[src]

Auto Trait Implementations

impl RefUnwindSafe for U2f

impl Send for U2f

impl Sync for U2f

impl Unpin for U2f

impl UnwindSafe for U2f

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.