pub struct LedgerProvider { /* private fields */ }
Expand description
Ledger provider manages device discovery and connection
Implementations§
Trait Implementations§
Source§impl Transport for LedgerProvider
Transport implementation for high-level LedgerProvider
impl Transport for LedgerProvider
Transport implementation for high-level LedgerProvider
Source§fn list<'life0, 'async_trait>(
&'life0 mut self,
filters: Filters,
) -> Pin<Box<dyn Future<Output = Result<Vec<LedgerInfo>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 mut self,
filters: Filters,
) -> Pin<Box<dyn Future<Output = Result<Vec<LedgerInfo>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List available devices using the specified filter
Source§fn connect<'life0, 'async_trait>(
&'life0 mut self,
info: LedgerInfo,
) -> Pin<Box<dyn Future<Output = Result<LedgerHandle, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect<'life0, 'async_trait>(
&'life0 mut self,
info: LedgerInfo,
) -> Pin<Box<dyn Future<Output = Result<LedgerHandle, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Connect to an available device
Source§type Device = LedgerHandle
type Device = LedgerHandle
Device handle for interacting with the device
Source§type Info = LedgerInfo
type Info = LedgerInfo
Device information, used for listing and connecting
Auto Trait Implementations§
impl Freeze for LedgerProvider
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