Struct ledger_mob::LedgerHandle
pub struct LedgerHandle {
pub info: LedgerInfo,
/* private fields */
}
Expand description
Ledger device handle for interacting with LedgerProvider backed devices
Fields§
§info: LedgerInfo
Trait Implementations§
§impl Debug for LedgerHandle
impl Debug for LedgerHandle
§impl Drop for LedgerHandle
impl Drop for LedgerHandle
Drop impl sends close message to provider when LedgerHandle is dropped
§impl Exchange for LedgerHandle
impl Exchange for LedgerHandle
Exchange implementation for LedgerProvider backed LedgerHandle
Auto Trait Implementations§
impl !RefUnwindSafe for LedgerHandle
impl Send for LedgerHandle
impl Sync for LedgerHandle
impl Unpin for LedgerHandle
impl !UnwindSafe for LedgerHandle
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
§impl<T> Device for Twhere
T: Exchange + Send,
impl<T> Device for Twhere T: Exchange + Send,
§fn request<'a, 'b, 'life0, 'async_trait, RESP>(
&'life0 mut self,
req: impl ApduReq<'a> + Send + 'async_trait,
buff: &'b mut [u8],
timeout: Duration
) -> Pin<Box<dyn Future<Output = Result<RESP, Error>> + Send + 'async_trait, Global>>where
'a: 'async_trait,
'b: 'async_trait,
'life0: 'async_trait,
RESP: 'async_trait + EncDec<'b, ApduError>,
T: 'async_trait,
fn request<'a, 'b, 'life0, 'async_trait, RESP>( &'life0 mut self, req: impl ApduReq<'a> + Send + 'async_trait, buff: &'b mut [u8], timeout: Duration ) -> Pin<Box<dyn Future<Output = Result<RESP, Error>> + Send + 'async_trait, Global>>where 'a: 'async_trait, 'b: 'async_trait, 'life0: 'async_trait, RESP: 'async_trait + EncDec<'b, ApduError>, T: 'async_trait,
Issue a request APDU to a device, encoding and decoding internally then returning a response APDU