Struct probe_rs_cli_util::common_options::FlashOptions
source · 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§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 try_parse() -> Result<Self, Error<RichFormatter>>
fn try_parse() -> Result<Self, Error<RichFormatter>>
Parse from
std::env::args_os(), return Err on error.source§fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
source§fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, exit on error
source§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.