Struct ledger_mob::LedgerProvider
pub struct LedgerProvider { /* private fields */ }
Expand description
Ledger provider manages device discovery and connection
Implementations§
§impl LedgerProvider
impl LedgerProvider
pub async fn init() -> LedgerProvider
pub async fn init() -> LedgerProvider
Create or connect to the ledger provider instance
Trait Implementations§
§impl Transport for LedgerProvider
impl Transport for LedgerProvider
Transport implementation for high-level LedgerProvider
§fn list<'life0, 'async_trait>(
&'life0 mut self,
filters: Filters
) -> Pin<Box<dyn Future<Output = Result<Vec<LedgerInfo, Global>, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
LedgerProvider: 'async_trait,
fn list<'life0, 'async_trait>( &'life0 mut self, filters: Filters ) -> Pin<Box<dyn Future<Output = Result<Vec<LedgerInfo, Global>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, LedgerProvider: 'async_trait,
List available devices using the specified filter
§fn connect<'life0, 'async_trait>(
&'life0 mut self,
info: LedgerInfo
) -> Pin<Box<dyn Future<Output = Result<LedgerHandle, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
LedgerProvider: 'async_trait,
fn connect<'life0, 'async_trait>( &'life0 mut self, info: LedgerInfo ) -> Pin<Box<dyn Future<Output = Result<LedgerHandle, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, LedgerProvider: 'async_trait,
Connect to an available device
§type Device = LedgerHandle
type Device = LedgerHandle
Device handle for interacting with the device
§type Info = LedgerInfo
type Info = LedgerInfo
Device information, used for listing and connecting
Auto Trait Implementations§
impl !RefUnwindSafe for LedgerProvider
impl Send for LedgerProvider
impl Sync for LedgerProvider
impl Unpin for LedgerProvider
impl !UnwindSafe for LedgerProvider
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more