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>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: '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>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Implementations on Foreign Types§
Implementors§
impl Exchange for GenericDevice
impl Exchange for LedgerHandle
Exchange implementation for LedgerProvider backed LedgerHandle
impl Exchange for BleDevice
Exchange impl for BLE backed devices
impl Exchange for TcpDevice
Exchange implementation for the TCP transport