MCPcopy Create free account

hub / github.com/Zondax/ledger-rs / functions

Functions37 in github.com/Zondax/ledger-rs

↓ 9 callersMethoderror_code
Will attempt to interpret the error code as an [APDUErrorCode], returning the code as is otherwise
ledger-apdu/src/lib.rs:102
↓ 5 callersMethodexchange
( &self, command: &APDUCommand<I>, )
ledger-transport-hid/src/lib.rs:179
↓ 4 callersMethoddata
(&self)
ledger-apdu/src/lib.rs:96
↓ 4 callersFunctionhidapi
()
ledger-transport-hid/src/lib.rs:228
↓ 4 callersFunctioninit_logging
()
ledger-transport-hid/src/lib.rs:222
↓ 3 callersMethoddescription
Quick-hand to retrieve the error code's description / display
ledger-apdu/src/lib.rs:152
↓ 2 callersMethodserialize
Serialize this [APDUCommand] to be sent to the device
ledger-apdu/src/lib.rs:53
↓ 1 callersMethodapdu_data
(&self)
ledger-apdu/src/lib.rs:90
↓ 1 callersFunctioncatchExit
()
tests/test.js:6
Functionapdu_answer_error
()
ledger-apdu/src/tests.rs:63
Functionapdu_answer_success
()
ledger-apdu/src/tests.rs:39
Functionapdu_answer_too_short
()
ledger-apdu/src/tests.rs:87
Functionapdu_answer_unknown
()
ledger-apdu/src/tests.rs:75
Functionapdu_answer_vec
()
ledger-apdu/src/tests.rs:51
Functionapdu_command_slice
()
ledger-apdu/src/tests.rs:32
Functionapdu_command_vec
()
ledger-apdu/src/tests.rs:23
Functionexchange
()
ledger-transport-hid/src/lib.rs:288
Methodfrom
(code: APDUErrorCode)
ledger-apdu/src/lib.rs:158
Methodfrom_answer
Attempt to interpret the given slice as an APDU answer
ledger-apdu/src/lib.rs:80
Methodget_app_info
Retrieve the app info Works only in app (TOOD: dashboard support)
ledger-zondax-generic/src/lib.rs:212
Methodget_device_info
Retrieve the device info Works only in the dashboard
ledger-zondax-generic/src/lib.rs:161
Methodget_version
Retrieve the app version
ledger-zondax-generic/src/lib.rs:260
Methodhandle_response_error
Handles the error response from APDU exchange. # Arguments `response` - The response from the APDU exchange. # Returns A result indicating success o
ledger-zondax-generic/src/lib.rs:134
Methodhandle_response_error_signature
Handles the error response from APDU exchange. # Arguments `response` - The response from the APDU exchange. # Returns A result indicating success o
ledger-zondax-generic/src/lib.rs:149
Methodis_ledger
(dev: &DeviceInfo)
ledger-transport-hid/src/lib.rs:40
Functionledger_device_path
()
ledger-transport-hid/src/lib.rs:260
Functionlist_all_devices
()
ledger-transport-hid/src/lib.rs:236
Methodlist_ledgers
Get a list of ledger devices available
ledger-transport-hid/src/lib.rs:45
Methodnew
Create a new HID transport, connecting to the first ledger found # Warning Opening the same device concurrently will lead to device lock after the fir
ledger-transport-hid/src/lib.rs:54
Methodopen_device
Open a specific ledger device # Note No checks are made to ensure the device is a ledger device # Warning Opening the same device concurrently will
ledger-transport-hid/src/lib.rs:70
Functionopen_same_device_twice
see https://github.com/ruabmbua/hidapi-rs/issues/81
ledger-transport-hid/src/lib.rs:307
Methodread_apdu
( device: &HidDevice, channel: u16, apdu_answer: &mut Vec<u8>, )
ledger-transport-hid/src/lib.rs:124
Methodretcode
(&self)
ledger-apdu/src/lib.rs:110
Methodsend_chunks
Stream a long request in chunks, with an option to set P2 for all chunks. This method combines the functionality of sending chunks with or without P2
ledger-zondax-generic/src/lib.rs:325
Functionserialize
()
ledger-transport-hid/src/lib.rs:274
Methodtry_from
(value: u16)
ledger-apdu/src/lib.rs:166
Methodwrite_apdu
( device: &HidDevice, channel: u16, apdu_command: &[u8], )
ledger-transport-hid/src/lib.rs:82