pub enum TuneError {
InvalidConfig(String),
NoFalsePositives,
NoTruePositives,
NonFiringExemplars {
fp: Vec<usize>,
tp: Vec<usize>,
},
NoCandidateFields(usize),
NoCleanSeparator {
closest: Vec<String>,
blocking_tp: Vec<usize>,
uncovered_fp: Vec<usize>,
},
Internal {
stage: String,
message: String,
},
}Expand description
Why a tuning proposal could not be produced.
Variants§
InvalidConfig(String)
A reviewability or inference bound is invalid.
NoFalsePositives
No false-positive events were provided.
NoTruePositives
No true-positive events were provided.
NonFiringExemplars
Some labeled exemplars do not fire the target rule before filtering.
Fields
NoCandidateFields(usize)
No stable scalar field could be profiled.
NoCleanSeparator
No verified separator protected every TP and covered the required FPs.
Fields
Internal
Emitted YAML failed its own parse, lint, compile, or verification pass.
Trait Implementations§
Source§impl Error for TuneError
impl Error for TuneError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for TuneError
impl RefUnwindSafe for TuneError
impl Send for TuneError
impl Sync for TuneError
impl Unpin for TuneError
impl UnsafeUnpin for TuneError
impl UnwindSafe for TuneError
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