pub struct DfuDevice {
pub mode: String,
pub vid: String,
pub pid: String,
pub devnum: Option<i64>,
pub cfg: Option<i64>,
pub intf: Option<i64>,
pub alt: Option<i64>,
pub name: Option<String>,
pub serial: Option<String>,
pub path: Option<String>,
}Expand description
One device reported by dfu-util -l (via crate::nets::dfu::Dfu::list).
Fields§
§mode: String"DFU" (in DFU mode) or "Runtime" (app running, DFU-capable).
vid: StringVendor id, lowercase hex.
pid: StringProduct id, lowercase hex.
devnum: Option<i64>Device number on the bus.
cfg: Option<i64>Configuration index.
intf: Option<i64>Interface index.
alt: Option<i64>Alternate setting index.
name: Option<String>Interface name (e.g. "@Internal Flash /0x08000000/...").
serial: Option<String>Device serial.
path: Option<String>Hub port path, e.g. "1-1.4".
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DfuDevice
impl<'de> Deserialize<'de> for DfuDevice
Source§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
Auto Trait Implementations§
impl Freeze for DfuDevice
impl RefUnwindSafe for DfuDevice
impl Send for DfuDevice
impl Sync for DfuDevice
impl Unpin for DfuDevice
impl UnsafeUnpin for DfuDevice
impl UnwindSafe for DfuDevice
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