pub enum SafetyReason {
DangerousConstruct(String),
CompileFailed(String),
Structural(StructuralRule),
ProbeStringTimeout(usize),
ProbeSubprocessTimeout,
ProbeSpawnFailed(String),
UnreachableProbe,
OverBudget {
cap: usize,
extrapolated: f64,
ratio: f64,
min_32: f64,
median_32: f64,
load_factor: f64,
},
BuilderDeadline(String),
Safe,
}Expand description
Why a pattern was rejected or accepted.
Variants§
DangerousConstruct(String)
One of the three dangerous backtracking constructs.
CompileFailed(String)
Neither engine can compile the pattern.
Structural(StructuralRule)
A structural detector flagged the pattern.
ProbeStringTimeout(usize)
A test string exceeded the per-string threshold.
ProbeSubprocessTimeout
The test-strings child was killed by its deadline.
ProbeSpawnFailed(String)
The timing child failed to spawn or exited unexpectedly.
UnreachableProbe
No reaching probe could be synthesized.
OverBudget
Extrapolated cost exceeds the budget at the cap.
BuilderDeadline(String)
Probe construction exceeded its deadline or a builder budget.
Safe
No adversarial trigger found; certified safe.
Implementations§
Source§impl SafetyReason
impl SafetyReason
Sourcepub fn reason_class(&self) -> &'static str
pub fn reason_class(&self) -> &'static str
The stable reason class token (the corpus pins these).
Trait Implementations§
Source§impl Clone for SafetyReason
impl Clone for SafetyReason
Source§impl Debug for SafetyReason
impl Debug for SafetyReason
Source§impl Display for SafetyReason
impl Display for SafetyReason
Source§impl PartialEq for SafetyReason
impl PartialEq for SafetyReason
impl StructuralPartialEq for SafetyReason
Auto Trait Implementations§
impl Freeze for SafetyReason
impl RefUnwindSafe for SafetyReason
impl Send for SafetyReason
impl Sync for SafetyReason
impl Unpin for SafetyReason
impl UnsafeUnpin for SafetyReason
impl UnwindSafe for SafetyReason
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