Trait ledger_mob::Transport
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, Global>, Error>> + Send + 'async_trait, Global>>
where 'life0: 'async_trait,
Self: '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, Global>>
where 'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Transport trait provides an abstract interface for transport implementations
Required Associated Types§
Required Methods§
Implementors§
§impl Transport for LedgerProvider
impl Transport for LedgerProvider
Transport implementation for high-level LedgerProvider