pub enum TagMatcherError {
RegexNotBuiltIn {
pattern: String,
},
}Expand description
Error surfaced when a TagMatcher variant can’t be evaluated
by the current binary because the gating Cargo feature wasn’t
compiled in.
Today the only variant is TagMatcherError::RegexNotBuiltIn.
More variants may land if other matchers gain feature gates
(e.g. a future ML-tag-classifier matcher behind --features classify).
Variants§
RegexNotBuiltIn
A TagMatcher::Regex was used, but the receiving binary
was built without --features regex. Carries the offending
pattern so the caller can surface it in the error message.
Trait Implementations§
Source§impl Clone for TagMatcherError
impl Clone for TagMatcherError
Source§fn clone(&self) -> TagMatcherError
fn clone(&self) -> TagMatcherError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TagMatcherError
impl Debug for TagMatcherError
Source§impl Display for TagMatcherError
impl Display for TagMatcherError
impl Eq for TagMatcherError
Source§impl Error for TagMatcherError
impl Error for TagMatcherError
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()
Source§impl PartialEq for TagMatcherError
impl PartialEq for TagMatcherError
Source§fn eq(&self, other: &TagMatcherError) -> bool
fn eq(&self, other: &TagMatcherError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TagMatcherError
Auto Trait Implementations§
impl Freeze for TagMatcherError
impl RefUnwindSafe for TagMatcherError
impl Send for TagMatcherError
impl Sync for TagMatcherError
impl Unpin for TagMatcherError
impl UnsafeUnpin for TagMatcherError
impl UnwindSafe for TagMatcherError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.