Trait passkey_authenticator::U2fApi
source · pub trait U2fApi: Sealed {
// Required methods
fn register<'life0, 'life1, 'async_trait>(
&'life0 mut self,
request: RegisterRequest,
handle: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Result<RegisterResponse, U2FError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn authenticate<'life0, 'async_trait>(
&'life0 self,
request: AuthenticationRequest,
counter: u32,
user_presence: Flags
) -> Pin<Box<dyn Future<Output = Result<AuthenticationResponse, U2FError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Provides the U2F Authenticator API
Required Methods§
sourcefn register<'life0, 'life1, 'async_trait>(
&'life0 mut self,
request: RegisterRequest,
handle: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Result<RegisterResponse, U2FError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn register<'life0, 'life1, 'async_trait>(
&'life0 mut self,
request: RegisterRequest,
handle: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Result<RegisterResponse, U2FError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
from: RegisterRequest::register() (u2f/register.rs)
sourcefn authenticate<'life0, 'async_trait>(
&'life0 self,
request: AuthenticationRequest,
counter: u32,
user_presence: Flags
) -> Pin<Box<dyn Future<Output = Result<AuthenticationResponse, U2FError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn authenticate<'life0, 'async_trait>(
&'life0 self,
request: AuthenticationRequest,
counter: u32,
user_presence: Flags
) -> Pin<Box<dyn Future<Output = Result<AuthenticationResponse, U2FError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
from AuthenticationRequest::authenticate() (u2f/authenticate.rs)