pub enum Error {
BenchmarkError(ValgrindTool, ModulePath, String),
ConfigurationError(ModulePath, Option<String>, String),
InitError(String),
InvalidBoolArgument(String, String),
LaunchError(PathBuf, String),
ParseError(PathBuf, String),
ProcessError(String, Option<Output>, ExitStatus, Option<ToolOutputPath>),
RegressionError(bool),
SandboxError(String),
VersionMismatch(Cmp, String, String),
}runner only.Expand description
The main Iai-Callgrind error type
Variants§
BenchmarkError(ValgrindTool, ModulePath, String)
A error during setup of a benchmark.
BenchmarkError(ValgrindTool, ModulePath, message)
ConfigurationError(ModulePath, Option<String>, String)
An error within the UI configuration structs but transpiring in the runner
ConfigurationError(ModulePath, benchmark_id, message)
InitError(String)
An error during the initialization of the runner
InitError(message)
InvalidBoolArgument(String, String)
An invalid command-line argument value when only yes or no is allowed
InvalidBoolArgument(option_name, value)
LaunchError(PathBuf, String)
The error when trying to start an external std::process::Command fails
LaunchError(executable_path, message)
ParseError(PathBuf, String)
The generic error when parsing of a tools log- or output file fails
ParseError(file_path, message)
ProcessError(String, Option<Output>, ExitStatus, Option<ToolOutputPath>)
The error after a successful launch of an external std::process::Command
ProcessError(
process_name,
std::process::Output,
std::process::ExitStatus,
ToolOutputPath
)RegressionError(bool)
If a regression check fails a RegressionError is issued
RegressionError(is_fatal), is_fatal needs to be true if the error should lead to an
immediate exit of the runner
SandboxError(String)
The error when setting up the crate::runner::common::Sandbox fails
SandboxError(message)
VersionMismatch(Cmp, String, String)
A version mismatch between the runner and the UI
VersionMismatch(Cmp, runner_version, library_version)
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more