Enum iai_callgrind::ExitWith
source · pub enum ExitWith {
Success,
Failure,
Code(i32),
}Available on crate feature
default only.Expand description
Set the expected exit status of a binary benchmark
Per default, the benchmarked binary is expected to succeed, but if a benchmark is expected to fail, setting this option is required.
§Examples
use iai_callgrind::{main, BinaryBenchmarkConfig, ExitWith};
main!(
config = BinaryBenchmarkConfig::default().exit_with(ExitWith::Code(1));
binary_benchmark_groups = my_group
);Variants§
Success
Exit with success is similar to ExitCode(0)
Failure
Exit with failure is similar to setting the ExitCode to something different than 0
Code(i32)
The exact ExitCode of the benchmark run
Trait Implementations§
source§impl From<&ExitWith> for InternalExitWith
impl From<&ExitWith> for InternalExitWith
Auto Trait Implementations§
impl RefUnwindSafe for ExitWith
impl Send for ExitWith
impl Sync for ExitWith
impl Unpin for ExitWith
impl UnwindSafe for ExitWith
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