pub enum EvalError {
InvalidRegex(Error),
InvalidCidr(AddrParseError),
Base64(String),
UnknownDetection(String),
InvalidModifiers(String),
IncompatibleValue(String),
ExpectedNumeric(String),
Parser(SigmaParserError),
CorrelationError(String),
UnknownRuleRef(String),
CorrelationCycle(String),
}Expand description
Errors that can occur during rule compilation or evaluation.
Variants§
InvalidRegex(Error)
A regex pattern failed to compile.
InvalidCidr(AddrParseError)
A CIDR pattern failed to parse.
Base64(String)
A base64 operation failed.
UnknownDetection(String)
A detection referenced in a condition was not found.
InvalidModifiers(String)
A modifier combination is invalid.
IncompatibleValue(String)
A value type is incompatible with the modifier.
ExpectedNumeric(String)
A numeric value was expected but not found.
Parser(SigmaParserError)
A parser error propagated during compilation.
CorrelationError(String)
A correlation rule compilation or evaluation error.
UnknownRuleRef(String)
A rule referenced by a correlation was not found.
CorrelationCycle(String)
A cycle was detected in correlation rule references.
Trait Implementations§
Source§impl Error for EvalError
impl Error for EvalError
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 From<AddrParseError> for EvalError
impl From<AddrParseError> for EvalError
Source§fn from(source: AddrParseError) -> Self
fn from(source: AddrParseError) -> Self
Converts to this type from the input type.
Source§impl From<SigmaParserError> for EvalError
impl From<SigmaParserError> for EvalError
Source§fn from(source: SigmaParserError) -> Self
fn from(source: SigmaParserError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EvalError
impl !RefUnwindSafe for EvalError
impl Send for EvalError
impl Sync for EvalError
impl Unpin for EvalError
impl UnsafeUnpin for EvalError
impl !UnwindSafe for EvalError
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