Trait sktool::CtapDevice

source ·
pub trait CtapDevice: Sized {
    // Required methods
    fn devices<'async_trait>(
        
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Self>, Error>> + 'async_trait>>
       where Self: 'async_trait;
    fn path(&self) -> &str;
}
Expand description

Common trait implemented by the different transport mechanisms for CTAP devices. Note: the ?Send is necessary to allow implementations to make FIDL calls becasuse the auto generated FIDL bindings don’t require threadsafe inputs.

Required Methods§

source

fn devices<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<Vec<Self>, Error>> + 'async_trait>>where Self: 'async_trait,

Returns all known CTAP devices on this transport mechanism.

source

fn path(&self) -> &str

Returns the path this device was created from.

Implementors§