pub struct RunCmdConfig {
pub runner_cfg: Option<PathBuf>,
pub segger_gdb: Option<bool>,
pub run_name: Option<String>,
pub output_dir: Option<PathBuf>,
pub data_filepath: Option<PathBuf>,
pub binary: PathBuf,
}
Fields§
§runner_cfg: Option<PathBuf>
Filepath to a TOML file that contains the runner configuration.
Default: .embedded/runner.toml
segger_gdb: Option<bool>
true
: Uses RTT commands to communicate with SEGGER GDB instead of the monitor rtt
commands from OpenOCD.
This setting overwrites the one optionally set in the runner configuration.
run_name: Option<String>
Optional name for the test run.
Default: Absolut filepath of the executed binary.
output_dir: Option<PathBuf>
Optional path to a directory that is used to store test results and logs
Default: <binary filepath>_runner
(<binary filepath>
gets substituted with the filepath set for the binary
argument).
data_filepath: Option<PathBuf>
Path to look for custom JSON data that is linked with the test run.
Default: .embedded/test_run_data.json
binary: PathBuf
Filepath to the binary that should be run on the embedded device.
Trait Implementations§
Source§impl Args for RunCmdConfig
impl Args for RunCmdConfig
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 Clone for RunCmdConfig
impl Clone for RunCmdConfig
Source§fn clone(&self) -> RunCmdConfig
fn clone(&self) -> RunCmdConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl CommandFactory for RunCmdConfig
impl CommandFactory for RunCmdConfig
Source§impl Debug for RunCmdConfig
impl Debug for RunCmdConfig
Source§impl FromArgMatches for RunCmdConfig
impl FromArgMatches for RunCmdConfig
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 RunCmdConfig
impl Parser for RunCmdConfig
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 RunCmdConfig
impl RefUnwindSafe for RunCmdConfig
impl Send for RunCmdConfig
impl Sync for RunCmdConfig
impl Unpin for RunCmdConfig
impl UnwindSafe for RunCmdConfig
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