ledger_lib

Module transport

Source
Expand description

Low-level transport implementations for communication with ledger devices and nano apps

Transports are gated by transport_X features, while GenericTransport and GenericDevice provide an abstraction over enabled transports.

§Safety

UsbTransport (and thus GenericTransport when transport_usb feature is enabled) is not Send or Sync, however this is marked as such to appease async_trait

Once async_trait has stabilised transports can be marked correctly. (This is also implemented under the unstable_async_trait feature) Until then, use LedgerProvider for a Sync + Send interface or be super sure you’re not going to call transports from a multi-threaded context.

Structs§

Enums§

Traits§