pub trait Transport {
    type Filters: Default + 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§
Implementations on Foreign Types§
Source§impl<T: Transport + Send> Transport for &mut T
Blanket Transport implementation for references types
 
impl<T: Transport + Send> Transport for &mut T
Blanket Transport implementation for references types
type Filters = <T as Transport>::Filters
type Info = <T as Transport>::Info
type Device = <T as Transport>::Device
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,
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