pub trait Transport {
type Filters: Debug;
type Info: Debug;
type Device: Exchange;
// Required methods
fn list<'life0, 'async_trait>(
&'life0 mut self,
filters: Self::Filters,
) -> Pin<Box<dyn Future<Output = Result<Vec<LedgerInfo>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn connect<'life0, 'async_trait>(
&'life0 mut self,
info: Self::Info,
) -> Pin<Box<dyn Future<Output = Result<Self::Device, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Transport trait provides an abstract interface for transport implementations
Required Associated Types§
Required Methods§
Implementors§
Source§impl Transport for LedgerProvider
Transport implementation for high-level LedgerProvider
impl Transport for LedgerProvider
Transport implementation for high-level LedgerProvider
Source§impl Transport for BleTransport
Transport implementation for BleTransport
impl Transport for BleTransport
Transport implementation for BleTransport