pub enum GlobValidationError {
AbsolutePath {
field: &'static str,
pattern: String,
},
TraversalSegment {
field: &'static str,
pattern: String,
},
InvalidSyntax {
field: &'static str,
pattern: String,
source: Error,
},
}Expand description
Validation failure for a single user-supplied glob pattern.
Variants§
AbsolutePath
Pattern is an absolute path (/foo, \foo, C:\foo, \\share).
TraversalSegment
Pattern contains a .. path segment.
InvalidSyntax
Pattern is not valid glob syntax.
Trait Implementations§
Source§impl Debug for GlobValidationError
impl Debug for GlobValidationError
Source§impl Display for GlobValidationError
impl Display for GlobValidationError
Source§impl Error for GlobValidationError
impl Error for GlobValidationError
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 GlobValidationError
impl RefUnwindSafe for GlobValidationError
impl Send for GlobValidationError
impl Sync for GlobValidationError
impl Unpin for GlobValidationError
impl UnsafeUnpin for GlobValidationError
impl UnwindSafe for GlobValidationError
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