[][src]Trait ledger_hw_transport::Transport

pub trait Transport {
    type Error;
#[must_use]    fn exchange<'life0, 'life1, 'async_trait>(
        &'life0 self,
        req: &'life1 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; #[must_use] fn send<'life0, 'life1, 'async_trait>(
        &'life0 self,
        cla: u8,
        ins: u8,
        p1: u8,
        p2: u8,
        data: &'life1 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<(Vec<u8>, Status), TransportError<Self::Error>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Sync + 'async_trait
, { ... } }

Associated Types

type Error

Loading content...

Required methods

#[must_use]fn exchange<'life0, 'life1, 'async_trait>(
    &'life0 self,
    req: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

Loading content...

Provided methods

#[must_use]fn send<'life0, 'life1, 'async_trait>(
    &'life0 self,
    cla: u8,
    ins: u8,
    p1: u8,
    p2: u8,
    data: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Result<(Vec<u8>, Status), TransportError<Self::Error>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: Sync + 'async_trait, 

Loading content...

Implementors

Loading content...