pub struct FlashOptions {
pub list_chips: bool,
pub list_probes: bool,
pub disable_progressbars: bool,
pub disable_double_buffering: bool,
pub reset_halt: bool,
pub log: Option<Level>,
pub restore_unwritten: bool,
pub flash_layout_output_path: Option<String>,
pub elf: Option<PathBuf>,
pub work_dir: Option<PathBuf>,
pub cargo_options: CargoOptions,
pub probe_options: ProbeOptions,
}Expand description
Common options when flashing a target device.
Fields§
§list_chips: bool§list_probes: bool§disable_progressbars: bool§disable_double_buffering: bool§reset_halt: bool§log: Option<Level>§restore_unwritten: bool§flash_layout_output_path: Option<String>§elf: Option<PathBuf>§work_dir: Option<PathBuf>§cargo_options: CargoOptionsArguments which are forwarded to ‘cargo build’.
probe_options: ProbeOptionsArgument relating to probe/chip selection/configuration.
Implementations§
Source§impl FlashOptions
impl FlashOptions
Sourcepub fn early_exit(&self, f: impl Write) -> Result<bool, OperationError>
pub fn early_exit(&self, f: impl Write) -> Result<bool, OperationError>
Whether calling program should exit prematurely. Effectively handles –list-{probes,chips}.
If Ok(false) is returned, calling program should continue executing.
Note: ProbeOptions::maybe_load_chip_desc should be called before this function.
Trait Implementations§
Source§impl Args for FlashOptions
impl Args for FlashOptions
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for FlashOptions
impl CommandFactory for FlashOptions
Source§impl Debug for FlashOptions
impl Debug for FlashOptions
Source§impl FromArgMatches for FlashOptions
impl FromArgMatches for FlashOptions
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for FlashOptions
impl Parser for FlashOptions
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for FlashOptions
impl RefUnwindSafe for FlashOptions
impl Send for FlashOptions
impl Sync for FlashOptions
impl Unpin for FlashOptions
impl UnwindSafe for FlashOptions
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