pub enum CustomRuleError {
FileRead(PathBuf, Error),
YamlParse(PathBuf, Error),
SymlinkOutsideDir {
link: PathBuf,
target: PathBuf,
},
}Variants§
FileRead(PathBuf, Error)
YamlParse(PathBuf, Error)
SymlinkOutsideDir
A symlink in the rules directory resolved to a path outside the
declared --invariants-dir tree. Refused unless the caller opts in
via allow_external_symlinks: true (CLI flag
--invariants-allow-external-symlinks). See red-team R2 #4.
Trait Implementations§
Source§impl Debug for CustomRuleError
impl Debug for CustomRuleError
Source§impl Display for CustomRuleError
impl Display for CustomRuleError
Source§impl Error for CustomRuleError
impl Error for CustomRuleError
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 CustomRuleError
impl !RefUnwindSafe for CustomRuleError
impl Send for CustomRuleError
impl Sync for CustomRuleError
impl Unpin for CustomRuleError
impl UnsafeUnpin for CustomRuleError
impl !UnwindSafe for CustomRuleError
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