Trait ledger_mob::Exchange
pub trait Exchange {
// Required method
fn exchange<'life0, 'life1, 'async_trait>(
&'life0 mut self,
command: &'life1 [u8],
timeout: Duration
) -> Pin<Box<dyn Future<Output = Result<Vec<u8, Global>, Error>> + Send + 'async_trait, Global>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}
Expand description
Exchange trait provides a low-level interface for byte-wise exchange of APDU commands with a ledger devices
Required Methods§
fn exchange<'life0, 'life1, 'async_trait>( &'life0 mut self, command: &'life1 [u8], timeout: Duration ) -> Pin<Box<dyn Future<Output = Result<Vec<u8, Global>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,
Implementations on Foreign Types§
Implementors§
impl Exchange for LedgerHandle
Exchange implementation for LedgerProvider backed LedgerHandle
impl Exchange for BleDevice
Exchange impl for BLE backed devices
impl Exchange for GenericDevice
impl Exchange for TcpDevice
Exchange implementation for the TCP transport
impl Exchange for UsbDevice
Exchange impl for sending APDUs to a [UsbDevice]