pub struct UsbTransport { /* private fields */ }Expand description
USB HID based transport
This type is deliberately non-Send to avoid potential quirks that might happen when
the underlying hidapi type changes threads.
If you don’t need low-level control, see LedgerProvider for a tokio-based wrapper.
Implementations§
Source§impl UsbTransport
impl UsbTransport
Sourcepub fn new() -> Result<Self, Error>
pub fn new() -> Result<Self, Error>
Create a new UsbTransport
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UsbTransport
impl RefUnwindSafe for UsbTransport
impl !Send for UsbTransport
impl Sync for UsbTransport
impl Unpin for UsbTransport
impl UnwindSafe for UsbTransport
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