pub enum Threat {
Regex(RegexThreat),
Semantic(SemanticThreat),
PatternTimeout(RegexThreat),
}Expand description
One threat, regex or semantic, exactly as the reference emits it.
Variants§
Regex(RegexThreat)
Semantic(SemanticThreat)
PatternTimeout(RegexThreat)
The reference pattern_timeout shape for a spent scan time budget:
pattern scan_time_budget_exhausted, empty match, position 0,
category custom, weighted 1.0 like any custom threat. See
crate::scan_budget.
Trait Implementations§
impl StructuralPartialEq for Threat
Auto Trait Implementations§
impl Freeze for Threat
impl RefUnwindSafe for Threat
impl Send for Threat
impl Sync for Threat
impl Unpin for Threat
impl UnsafeUnpin for Threat
impl UnwindSafe for Threat
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