#[non_exhaustive]pub enum ResolveError {
Mapping(MappingError),
UnmappedField {
field: String,
logsource: LogSourceSelector,
},
UnsupportedModifier {
field: String,
modifier: &'static str,
},
InvalidValue {
field: String,
reason: &'static str,
},
TooManyVariants {
field: String,
count: usize,
},
UnsupportedKeyword {
found: &'static str,
},
}Expand description
A rule that cannot be resolved exactly.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Mapping(MappingError)
No mapping applies to the rule’s log source.
UnmappedField
The mapping for the rule’s log source does not map a field it uses.
Refused rather than treated as absent: the rule would load and never fire, and the gap would be invisible.
Fields
§
logsource: LogSourceSelectorThe rule’s log source.
UnsupportedModifier
A modifier whose meaning depends on configuration this resolution does not have.
InvalidValue
A value that cannot mean anything under its modifiers.
TooManyVariants
A value expands into more variants than a rule may carry.
UnsupportedKeyword
A keyword that is not text.
Trait Implementations§
Source§impl Clone for ResolveError
impl Clone for ResolveError
Source§impl Debug for ResolveError
impl Debug for ResolveError
Source§impl Display for ResolveError
impl Display for ResolveError
impl Eq for ResolveError
Source§impl Error for ResolveError
impl Error for ResolveError
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<MappingError> for ResolveError
impl From<MappingError> for ResolveError
Source§fn from(source: MappingError) -> Self
fn from(source: MappingError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ResolveError
impl PartialEq for ResolveError
impl StructuralPartialEq for ResolveError
Auto Trait Implementations§
impl Forget for ResolveError
impl Freeze for ResolveError
impl Move for ResolveError
impl RefUnwindSafe for ResolveError
impl Send for ResolveError
impl Sync for ResolveError
impl Unpin for ResolveError
impl UnsafeUnpin for ResolveError
impl UnwindSafe for ResolveError
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