pub enum GenericDevice {
Usb(UsbDevice),
Ble(BleDevice),
Tcp(TcpDevice),
}Expand description
GenericDevice for communication with ledger devices, abstracts underlying transport types
Variants§
Implementations§
Trait Implementations§
Source§impl From<BleDevice> for GenericDevice
Available on crate feature transport_ble only.
impl From<BleDevice> for GenericDevice
Available on crate feature
transport_ble only.Source§impl From<TcpDevice> for GenericDevice
Available on crate feature transport_tcp only.
impl From<TcpDevice> for GenericDevice
Available on crate feature
transport_tcp only.Source§impl From<UsbDevice> for GenericDevice
Available on crate feature transport_usb only.
impl From<UsbDevice> for GenericDevice
Available on crate feature
transport_usb only.Source§impl NonSendExchange for GenericDevice
impl NonSendExchange for GenericDevice
Auto Trait Implementations§
impl !Freeze for GenericDevice
impl !RefUnwindSafe for GenericDevice
impl !Send for GenericDevice
impl !Sync for GenericDevice
impl Unpin for GenericDevice
impl !UnwindSafe for GenericDevice
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