Struct probe_rs_cli_util::common_options::FlashOptions
source · [−]pub struct FlashOptions {Show 13 fields
pub version: bool,
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
version: boollist_chips: boollist_probes: booldisable_progressbars: booldisable_double_buffering: boolreset_halt: boollog: Option<Level>restore_unwritten: boolflash_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
sourceimpl 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
sourceimpl Args for FlashOptions
impl Args for FlashOptions
sourceimpl CommandFactory for FlashOptions
impl CommandFactory for FlashOptions
sourcefn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
Deprecated, replaced with CommandFactory::command_for_update
sourcefn command_for_update<'help>() -> App<'help>
fn command_for_update<'help>() -> App<'help>
sourceimpl Debug for FlashOptions
impl Debug for FlashOptions
sourceimpl FromArgMatches for FlashOptions
impl FromArgMatches for FlashOptions
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
sourcefn 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>
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
sourcefn 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.
sourcefn 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.
sourceimpl Parser for FlashOptions
impl Parser for FlashOptions
sourcefn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
sourcefn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
sourcefn 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
sourcefn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.
Auto Trait Implementations
impl RefUnwindSafe for FlashOptions
impl Send for FlashOptions
impl Sync for FlashOptions
impl Unpin for FlashOptions
impl UnwindSafe for FlashOptions
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