pub struct GenericTransport { /* private fields */ }
Expand description
GenericTransport for device communication, abstracts underlying transport types
Implementations§
Source§impl GenericTransport
impl GenericTransport
Sourcepub async fn new() -> Result<Self, Error>
pub async fn new() -> Result<Self, Error>
Create a new GenericTransport with all endabled transports
Trait Implementations§
Source§impl Transport for GenericTransport
impl Transport for GenericTransport
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 ledger devices using all enabled transports
Source§fn connect<'life0, 'async_trait>(
&'life0 mut self,
info: LedgerInfo,
) -> Pin<Box<dyn Future<Output = Result<GenericDevice, 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<GenericDevice, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Connect to a ledger device using available transports
Source§type Info = LedgerInfo
type Info = LedgerInfo
Device information, used for listing and connecting
Source§type Device = GenericDevice
type Device = GenericDevice
Device handle for interacting with the device
Auto Trait Implementations§
impl Freeze for GenericTransport
impl !RefUnwindSafe for GenericTransport
impl Send for GenericTransport
impl Sync for GenericTransport
impl Unpin for GenericTransport
impl !UnwindSafe for GenericTransport
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