pub struct DebugProbeInfo {
    pub identifier: String,
    pub vendor_id: u16,
    pub product_id: u16,
    pub serial_number: Option<String>,
    pub probe_type: DebugProbeType,
    pub hid_interface: Option<u8>,
}
Expand description

Gathers some information about a debug probe which was found during a scan.

Fields

identifier: String

The name of the debug probe.

vendor_id: u16

The USB vendor ID of the debug probe.

product_id: u16

The USB product ID of the debug probe.

serial_number: Option<String>

The serial number of the debug probe.

probe_type: DebugProbeType

The probe type of the debug probe.

hid_interface: Option<u8>

The USB HID interface which should be used. This is necessary for composite HID devices.

Implementations

Creates a new info struct that uniquely identifies a probe.

Open the probe described by this DebugProbeInfo.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.