pub enum MeasureError {
TooManyTicks {
warmup: u64,
steps: u64,
},
TimeoutTooLong {
timeout: Duration,
},
ZeroStatsEvery,
SeriesOffCadence {
series_every: u64,
stats_every: u64,
},
Reducer(ReducerError),
Stop(StopError),
}Expand description
Run and sampling settings under which a run cannot be measured.
Variants§
TooManyTicks
A warm-up and step count whose sum overflows a tick.
Fields
TimeoutTooLong
A timeout too long to read back from the seconds that a spec file records, as Duration::MAX is.
ZeroStatsEvery
A stats_every of 0.
SeriesOffCadence
A series_every that is not a multiple of stats_every.
Fields
Reducer(ReducerError)
A reducer that is rejected or does not bind.
Stop(StopError)
A stop condition that is rejected or does not bind.
Trait Implementations§
Source§impl Clone for MeasureError
impl Clone for MeasureError
Source§impl Debug for MeasureError
impl Debug for MeasureError
Source§impl Display for MeasureError
impl Display for MeasureError
impl Eq for MeasureError
Source§impl Error for MeasureError
impl Error for MeasureError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for MeasureError
impl PartialEq for MeasureError
impl StructuralPartialEq for MeasureError
Auto Trait Implementations§
impl Freeze for MeasureError
impl RefUnwindSafe for MeasureError
impl Send for MeasureError
impl Sync for MeasureError
impl Unpin for MeasureError
impl UnsafeUnpin for MeasureError
impl UnwindSafe for MeasureError
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