Struct probe_rs::DebugProbeSelector [−][src]
pub struct DebugProbeSelector { pub vendor_id: u16, pub product_id: u16, pub serial_number: Option<String>, }
Expand description
A struct to describe the way a probe should be selected.
Construct this from a set of info or from a string.
Example:
use std::convert::TryInto; let selector: probe_rs::DebugProbeSelector = "1337:1337:SERIAL".try_into().unwrap();
Fields
vendor_id: u16
product_id: u16
serial_number: Option<String>
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for DebugProbeSelector
impl Send for DebugProbeSelector
impl Sync for DebugProbeSelector
impl Unpin for DebugProbeSelector
impl UnwindSafe for DebugProbeSelector
Blanket Implementations
Mutably borrows from an owned value. Read more
Adds separators according to the given SeparatorPolicy
. Read more
Inserts a comma every three digits from the right. Read more
Inserts a space every three digits from the right. Read more
Inserts a period every three digits from the right. Read more
Inserts an underscore every three digits from the right. Read more