pub trait Fido2UserInterface: Send + Sync {
// Required methods
fn check_user<'a, 'life0, 'async_trait>(
&'life0 self,
options: CheckUserOptions,
hint: UiHint<'a, CipherView>,
) -> Pin<Box<dyn Future<Output = Result<CheckUserResult, Fido2CallbackError>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn pick_credential_for_authentication<'life0, 'async_trait>(
&'life0 self,
available_credentials: Vec<CipherView>,
) -> Pin<Box<dyn Future<Output = Result<CipherView, Fido2CallbackError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn check_user_and_pick_credential_for_creation<'life0, 'async_trait>(
&'life0 self,
options: CheckUserOptions,
new_credential: Fido2CredentialNewView,
) -> Pin<Box<dyn Future<Output = Result<(CipherView, CheckUserResult), Fido2CallbackError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn is_verification_enabled(&self) -> bool;
}Required Methods§
fn check_user<'a, 'life0, 'async_trait>(
&'life0 self,
options: CheckUserOptions,
hint: UiHint<'a, CipherView>,
) -> Pin<Box<dyn Future<Output = Result<CheckUserResult, Fido2CallbackError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn pick_credential_for_authentication<'life0, 'async_trait>(
&'life0 self,
available_credentials: Vec<CipherView>,
) -> Pin<Box<dyn Future<Output = Result<CipherView, Fido2CallbackError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn check_user_and_pick_credential_for_creation<'life0, 'async_trait>(
&'life0 self,
options: CheckUserOptions,
new_credential: Fido2CredentialNewView,
) -> Pin<Box<dyn Future<Output = Result<(CipherView, CheckUserResult), Fido2CallbackError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_verification_enabled(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".