#[non_exhaustive]pub enum GlobConfigError {
TooLong {
pattern: String,
observed: usize,
limit: usize,
},
Invalid {
pattern: String,
source: Error,
},
}Expand description
Errors raised while compiling user-supplied glob patterns.
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.
TooLong
Pattern exceeded MAX_GLOB_PATTERN_BYTES. Caller should reject the
input — this is a defence against adversarial regex DoS via the
underlying globset engine.
Fields
Invalid
globset rejected the pattern as malformed.
Trait Implementations§
Source§impl Debug for GlobConfigError
impl Debug for GlobConfigError
Source§impl Display for GlobConfigError
impl Display for GlobConfigError
Source§impl Error for GlobConfigError
impl Error for GlobConfigError
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 Freeze for GlobConfigError
impl RefUnwindSafe for GlobConfigError
impl Send for GlobConfigError
impl Sync for GlobConfigError
impl Unpin for GlobConfigError
impl UnsafeUnpin for GlobConfigError
impl UnwindSafe for GlobConfigError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP