pub struct DfuOptions {
pub vid_pid: Option<String>,
pub serial: Option<String>,
pub alt: Option<u32>,
pub dfuse_address: Option<String>,
pub reset: bool,
}Expand description
Device selection and transfer options for DFU operations, mirroring the
corresponding dfu-util flags. The default selects whatever single DFU
device is on the bus (dfu-util errors out when the selection is
ambiguous).
Fields§
§vid_pid: Option<String>Match by vid:pid (hex, e.g. "0483:df11") — dfu-util -d.
serial: Option<String>Match by device serial — dfu-util -S.
alt: Option<u32>Alternate interface setting — dfu-util -a.
dfuse_address: Option<String>DfuSe address (and modifiers, e.g. "0x08000000:leave") —
dfu-util -s. STM32 system-bootloader targets need this.
reset: boolReset the device after download — dfu-util -R.
Trait Implementations§
Source§impl Clone for DfuOptions
impl Clone for DfuOptions
Source§fn clone(&self) -> DfuOptions
fn clone(&self) -> DfuOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DfuOptions
impl Debug for DfuOptions
Source§impl Default for DfuOptions
impl Default for DfuOptions
Source§fn default() -> DfuOptions
fn default() -> DfuOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DfuOptions
impl RefUnwindSafe for DfuOptions
impl Send for DfuOptions
impl Sync for DfuOptions
impl Unpin for DfuOptions
impl UnsafeUnpin for DfuOptions
impl UnwindSafe for DfuOptions
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