pub enum SigmaParserError {
Yaml(Error),
Condition(String, Option<SourceLocation>),
UnknownModifier(String),
InvalidFieldSpec(String),
InvalidRule(String),
MissingField(String),
InvalidDetection(String),
InvalidCorrelation(String),
InvalidTimespan(String),
InvalidValue(String),
InvalidAction(String),
Io(Error),
}Expand description
Errors that can occur during Sigma rule parsing.
Variants§
Yaml(Error)
Condition(String, Option<SourceLocation>)
UnknownModifier(String)
InvalidFieldSpec(String)
InvalidRule(String)
MissingField(String)
InvalidDetection(String)
InvalidCorrelation(String)
InvalidTimespan(String)
InvalidValue(String)
InvalidAction(String)
Io(Error)
Implementations§
Source§impl SigmaParserError
impl SigmaParserError
Sourcepub fn location(&self) -> Option<SourceLocation>
pub fn location(&self) -> Option<SourceLocation>
Returns the source location if this error variant carries one.
Trait Implementations§
Source§impl Debug for SigmaParserError
impl Debug for SigmaParserError
Source§impl Display for SigmaParserError
impl Display for SigmaParserError
Source§impl Error for SigmaParserError
impl Error for SigmaParserError
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<Error> for SigmaParserError
impl From<Error> for SigmaParserError
Auto Trait Implementations§
impl Freeze for SigmaParserError
impl !RefUnwindSafe for SigmaParserError
impl Send for SigmaParserError
impl Sync for SigmaParserError
impl Unpin for SigmaParserError
impl UnsafeUnpin for SigmaParserError
impl !UnwindSafe for SigmaParserError
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