Struct deqp_runner::CommandLineRunOptions
source · pub struct CommandLineRunOptions {
pub output_dir: PathBuf,
pub sub_config: SubRunConfig,
pub jobs: usize,
pub summary_limit: usize,
pub verbose: usize,
pub timestamp: Option<Timestamp>,
pub save_xfail_logs: bool,
}
Fields§
§output_dir: PathBuf
§sub_config: SubRunConfig
§jobs: usize
§summary_limit: usize
§verbose: usize
§timestamp: Option<Timestamp>
§save_xfail_logs: bool
Implementations§
source§impl CommandLineRunOptions
impl CommandLineRunOptions
pub fn setup(&self) -> Result<()>
pub fn baseline(&self) -> Result<RunnerResults>
pub fn skips_regex(&self) -> Result<RegexSet>
pub fn flakes_regex(&self) -> Result<RegexSet>
pub fn includes_regex(&self) -> Result<RegexSet>
Trait Implementations§
source§impl Debug for CommandLineRunOptions
impl Debug for CommandLineRunOptions
source§impl StructOpt for CommandLineRunOptions
impl StructOpt for CommandLineRunOptions
source§fn from_clap(matches: &ArgMatches<'_>) -> Self
fn from_clap(matches: &ArgMatches<'_>) -> Self
Builds the struct from
clap::ArgMatches
. It’s guaranteed to succeed
if matches
originates from an App
generated by StructOpt::clap
called on
the same type, otherwise it must panic.source§fn from_args() -> Selfwhere
Self: Sized,
fn from_args() -> Selfwhere Self: Sized,
Builds the struct from the command line arguments (
std::env::args_os
).
Calls clap::Error::exit
on failure, printing the error message and aborting the program.source§fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
fn from_args_safe() -> Result<Self, Error>where Self: Sized,
Builds the struct from the command line arguments (
std::env::args_os
).
Unlike StructOpt::from_args
, returns clap::Error
on failure instead of aborting the program,
so calling .exit
is up to you.source§fn from_iter<I>(iter: I) -> Selfwhere
Self: Sized,
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString> + Clone,
fn from_iter<I>(iter: I) -> Selfwhere Self: Sized, I: IntoIterator, <I as IntoIterator>::Item: Into<OsString> + Clone,
Gets the struct from any iterator such as a
Vec
of your making.
Print the error message and quit the program in case of failure. Read moresource§fn from_iter_safe<I>(iter: I) -> Result<Self, Error>where
Self: Sized,
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString> + Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error>where Self: Sized, I: IntoIterator, <I as IntoIterator>::Item: Into<OsString> + Clone,
Gets the struct from any iterator such as a
Vec
of your making. Read moreAuto Trait Implementations§
impl RefUnwindSafe for CommandLineRunOptions
impl Send for CommandLineRunOptions
impl Sync for CommandLineRunOptions
impl Unpin for CommandLineRunOptions
impl UnwindSafe for CommandLineRunOptions
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