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 from 0
without having to rely on a specific exit code
Code(i32)
The exact ExitCode
of the benchmark run
Trait Implementations§
source§impl From<&ExitWith> for InternalExitWith
impl From<&ExitWith> for InternalExitWith
source§impl From<ExitWith> for InternalExitWith
impl From<ExitWith> for InternalExitWith
impl Copy for ExitWith
Auto Trait Implementations§
impl Freeze for ExitWith
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)