#[non_exhaustive]pub enum RulesetEnginesError {
Empty,
DuplicateName(String),
RoutedWithOthers(usize),
RoutedWithWhen(String),
WhenWithoutClassifier(String),
UnknownSchema {
name: String,
schema: String,
known: Vec<String>,
},
}Expand description
Construction errors for RulesetEngines.
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.
Empty
No rulesets were supplied.
DuplicateName(String)
Two rulesets share a name.
RoutedWithOthers(usize)
A routed unit was supplied alongside another unit.
RoutedWithWhen(String)
A routed unit carries a when binding.
WhenWithoutClassifier(String)
A unit carries when but no classifier is configured.
UnknownSchema
A when schema is not known to the classifier.
Trait Implementations§
Source§impl Debug for RulesetEnginesError
impl Debug for RulesetEnginesError
Source§impl Display for RulesetEnginesError
impl Display for RulesetEnginesError
Source§impl Error for RulesetEnginesError
impl Error for RulesetEnginesError
1.30.0 · 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()
Auto Trait Implementations§
impl Forget for RulesetEnginesError
impl Freeze for RulesetEnginesError
impl Move for RulesetEnginesError
impl RefUnwindSafe for RulesetEnginesError
impl Send for RulesetEnginesError
impl Sync for RulesetEnginesError
impl Unpin for RulesetEnginesError
impl UnsafeUnpin for RulesetEnginesError
impl UnwindSafe for RulesetEnginesError
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