pub enum IgnorePatternError {
Empty,
MissingPathComponent(String),
Absolute(String),
ParentTraversal(String),
Backslash(String),
UnsafeCharacters,
UnsupportedSyntax(String),
InvalidGlob {
pattern: String,
detail: String,
},
ProtectedInclude {
pattern: String,
directory: String,
},
}Expand description
Invalid user-supplied discovery glob.
Variants§
Empty
An empty pattern has no deterministic discovery meaning.
MissingPathComponent(String)
Dot-only and separator-only patterns do not identify a repository path.
Absolute(String)
Patterns are always resolved relative to one checkout.
ParentTraversal(String)
Parent traversal could escape the registered checkout.
Backslash(String)
Portable patterns use / on every operating system.
UnsafeCharacters
Terminal control and bidirectional characters are unsafe in reported rules.
UnsupportedSyntax(String)
The public glob contract is intentionally limited to portable wildcard syntax.
InvalidGlob
The glob expression is malformed.
ProtectedInclude
Generated state and version-control metadata cannot be re-enabled.
Trait Implementations§
Source§impl Debug for IgnorePatternError
impl Debug for IgnorePatternError
Source§impl Display for IgnorePatternError
impl Display for IgnorePatternError
Source§impl Error for IgnorePatternError
impl Error for IgnorePatternError
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 Freeze for IgnorePatternError
impl RefUnwindSafe for IgnorePatternError
impl Send for IgnorePatternError
impl Sync for IgnorePatternError
impl Unpin for IgnorePatternError
impl UnsafeUnpin for IgnorePatternError
impl UnwindSafe for IgnorePatternError
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