pub trait Exchange {
// Required method
fn exchange(
&mut self,
command: &[u8],
timeout: Duration,
) -> impl Future<Output = Result<Vec<u8>, Error>> + Send;
}Expand description
Exchange trait provides a low-level interface for byte-wise exchange of APDU commands with a ledger devices.
Required Methods§
fn exchange( &mut self, command: &[u8], timeout: Duration, ) -> impl Future<Output = Result<Vec<u8>, Error>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.