[−][src]Struct ledger_hw_transport_hid::HidTransport
Methods
impl HidTransport
[src]
pub fn new() -> Result<HidTransport, HidTransportError>
[src]
Trait Implementations
impl Transport for HidTransport
[src]
type Error = HidTransportError
fn exchange<'life0, 'life1, 'async_trait>(
&'life0 self,
command: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
command: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn send<'life0, 'life1, 'async_trait>(
&'life0 self,
cla: u8,
ins: u8,
p1: u8,
p2: u8,
data: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Result<(Vec<u8>, Status), TransportError<Self::Error>>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
[src]
&'life0 self,
cla: u8,
ins: u8,
p1: u8,
p2: u8,
data: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Result<(Vec<u8>, Status), TransportError<Self::Error>>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
Auto Trait Implementations
impl RefUnwindSafe for HidTransport
impl Send for HidTransport
impl Sync for HidTransport
impl Unpin for HidTransport
impl UnwindSafe for HidTransport
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,