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§async fn list(&mut self, filters: Filters) -> Result<Vec<LedgerInfo>, Error>
async fn list(&mut self, filters: Filters) -> Result<Vec<LedgerInfo>, Error>
List available devices using the specified filter
Source§async fn connect(&mut self, info: LedgerInfo) -> Result<LedgerHandle, Error>
async fn connect(&mut self, info: LedgerInfo) -> Result<LedgerHandle, Error>
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