Struct probe_rs::DebugProbeSelector
source · [−]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
The the USB vendor id of the debug probe to be used.
product_id: u16
The the USB product id of the debug probe to be used.
serial_number: Option<String>
The the serial number of the debug probe to be used.
Trait Implementations
sourceimpl Clone for DebugProbeSelector
impl Clone for DebugProbeSelector
sourcefn clone(&self) -> DebugProbeSelector
fn clone(&self) -> DebugProbeSelector
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DebugProbeSelector
impl Debug for DebugProbeSelector
sourceimpl<'de> Deserialize<'de> for DebugProbeSelector
impl<'de> Deserialize<'de> for DebugProbeSelector
sourcefn 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
sourceimpl Display for DebugProbeSelector
impl Display for DebugProbeSelector
sourceimpl From<&DebugProbeInfo> for DebugProbeSelector
impl From<&DebugProbeInfo> for DebugProbeSelector
sourcefn from(selector: &DebugProbeInfo) -> Self
fn from(selector: &DebugProbeInfo) -> Self
Converts to this type from the input type.
sourceimpl From<DebugProbeInfo> for DebugProbeSelector
impl From<DebugProbeInfo> for DebugProbeSelector
sourcefn from(selector: DebugProbeInfo) -> Self
fn from(selector: DebugProbeInfo) -> Self
Converts to this type from the input type.
sourceimpl FromStr for DebugProbeSelector
impl FromStr for DebugProbeSelector
sourceimpl Serialize for DebugProbeSelector
impl Serialize for DebugProbeSelector
sourceimpl TryFrom<&str> for DebugProbeSelector
impl TryFrom<&str> for DebugProbeSelector
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more