pub enum DraftError {
NoExemplars,
NoCandidateFields(usize),
CannotMatchExemplars {
matched: usize,
total: usize,
floor: usize,
failing: Vec<usize>,
},
ForcedFieldMismatch {
fields: Vec<String>,
failing: Vec<usize>,
},
Internal {
stage: String,
message: String,
},
}Expand description
Why a draft could not be produced.
Variants§
NoExemplars
No exemplar events were provided.
NoCandidateFields(usize)
No field survived profiling (all volatile, excluded, or below the prevalence threshold).
CannotMatchExemplars
Even after relaxing to the minimum-field floor the draft does not match every exemplar, so an honest rule cannot be emitted.
ForcedFieldMismatch
A field forced via include_fields is absent from some exemplars, so
no draft containing it can match them. Forced fields are user intent
and are never dropped by relaxation.
Internal
The emitted YAML failed to parse or compile (a bug, surfaced honestly).
Trait Implementations§
Source§impl Debug for DraftError
impl Debug for DraftError
Source§impl Display for DraftError
impl Display for DraftError
Source§impl Error for DraftError
impl Error for DraftError
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 DraftError
impl RefUnwindSafe for DraftError
impl Send for DraftError
impl Sync for DraftError
impl Unpin for DraftError
impl UnsafeUnpin for DraftError
impl UnwindSafe for DraftError
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