pub struct HwiSelector {
pub network: Network,
pub fingerprint: Option<Fingerprint>,
pub device_type: Option<String>,
pub device_path: Option<String>,
pub include_emulators: bool,
pub passphrase: Option<HostPassphrase>,
pub password_given: bool,
}Expand description
Device selection as parsed from argv. The device type stays a raw string
until device lookup, matching upstream where an unknown type is a lookup
failure (-3), or -4 only when get_client is reached via -d.
Fields§
§network: NetworkThe Bitcoin network used for device operations and account paths.
fingerprint: Option<Fingerprint>The master fingerprint to match after opening a device, if supplied.
device_type: Option<String>The raw HWI device-family or model name, resolved during device lookup.
device_path: Option<String>An explicit native transport path, if supplied.
include_emulators: boolWhether discovery should include emulators.
passphrase: Option<HostPassphrase>The normalized host passphrase for Trezor or KeepKey, if supplied.
password_given: boolWhether a password argument was supplied, including an empty password.
Trait Implementations§
Source§impl Clone for HwiSelector
impl Clone for HwiSelector
Auto Trait Implementations§
impl Freeze for HwiSelector
impl RefUnwindSafe for HwiSelector
impl Send for HwiSelector
impl Sync for HwiSelector
impl Unpin for HwiSelector
impl UnsafeUnpin for HwiSelector
impl UnwindSafe for HwiSelector
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