[−][src]Struct u2f::protocol::U2f
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]
&self,
challenge: Challenge,
registrations: Vec<Registration>
) -> Result<U2fRegisterRequest, U2fError>
pub fn register_response(
&self,
challenge: Challenge,
response: RegisterResponse
) -> Result<Registration, U2fError>
[src]
&self,
challenge: Challenge,
response: RegisterResponse
) -> Result<Registration, U2fError>
pub fn sign_request(
&self,
challenge: Challenge,
registrations: Vec<Registration>
) -> U2fSignRequest
[src]
&self,
challenge: Challenge,
registrations: Vec<Registration>
) -> U2fSignRequest
pub fn sign_response(
&self,
challenge: Challenge,
reg: Registration,
sign_resp: SignResponse,
counter: u32
) -> Result<u32, U2fError>
[src]
&self,
challenge: Challenge,
reg: Registration,
sign_resp: SignResponse,
counter: u32
) -> Result<u32, U2fError>
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,