Trait HWI

Source
pub trait HWI {
    type Error: Debug;

    // Required methods
    fn unlock<'life0, 'async_trait>(
        &'life0 self,
        network: Network,
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_master_fingerprint<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Fingerprint, Self::Error>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn unlock<'life0, 'async_trait>( &'life0 self, network: Network, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_master_fingerprint<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Fingerprint, Self::Error>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

Source§

impl<E, F, D> HWI for D
where F: Debug, E: Debug, D: Device<Command, Transmit, Response, Error> + Transport<Error = E> + HttpClient<Error = F>,

Source§

type Error = Error<E, F>