Skip to main content

UiClient

Trait UiClient 

Source
pub trait UiClient: PollClient {
    // Provided methods
    fn confirm_user_present(
        &mut self,
        timeout_milliseconds: u32,
    ) -> ClientResult<'_, RequestUserConsent, Self> { ... }
    fn confirm_user_present_with_level(
        &mut self,
        level: Level,
        timeout_milliseconds: u32,
    ) -> ClientResult<'_, RequestUserConsent, Self> { ... }
    fn wink(&mut self, duration: Duration) -> ClientResult<'_, Wink, Self> { ... }
    fn set_custom_status(
        &mut self,
        status: u8,
    ) -> ClientResult<'_, SetCustomStatus, Self> { ... }
}
Expand description

User-interfacing functionality.

Provided Methods§

Source

fn confirm_user_present( &mut self, timeout_milliseconds: u32, ) -> ClientResult<'_, RequestUserConsent, Self>

Source

fn confirm_user_present_with_level( &mut self, level: Level, timeout_milliseconds: u32, ) -> ClientResult<'_, RequestUserConsent, Self>

Same as Self::confirm_user_present but the caller chooses the Level of the user-presence check. Used for stronger ceremonies (e.g. CTAP 2.3 long-touch reset) that require Level::Strong.

Source

fn wink(&mut self, duration: Duration) -> ClientResult<'_, Wink, Self>

Source

fn set_custom_status( &mut self, status: u8, ) -> ClientResult<'_, SetCustomStatus, Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§