pub enum AuditError {
FileNotFound(String),
ReadError {
path: String,
source: Error,
},
YamlParseError {
path: String,
source: Error,
},
InvalidSkillFormat(String),
RegexError(Error),
NotADirectory(String),
JsonError(Error),
ParseError {
path: String,
message: String,
},
Hook(HookError),
MalwareDb(MalwareDbError),
Watch(Error),
Config(String),
}Expand description
Legacy error type for backwards compatibility.
New code should prefer using CcAuditError for better error context.
Variants§
FileNotFound(String)
ReadError
YamlParseError
InvalidSkillFormat(String)
RegexError(Error)
NotADirectory(String)
JsonError(Error)
ParseError
Hook(HookError)
MalwareDb(MalwareDbError)
Watch(Error)
Config(String)
Trait Implementations§
Source§impl Debug for AuditError
impl Debug for AuditError
Source§impl Display for AuditError
impl Display for AuditError
Source§impl Error for AuditError
impl Error for AuditError
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 From<CcAuditError> for AuditError
Convert from CcAuditError to AuditError for backwards compatibility.
impl From<CcAuditError> for AuditError
Convert from CcAuditError to AuditError for backwards compatibility.
Source§fn from(err: CcAuditError) -> Self
fn from(err: CcAuditError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for AuditError
impl From<Error> for AuditError
Source§impl From<Error> for AuditError
impl From<Error> for AuditError
Source§impl From<Error> for AuditError
impl From<Error> for AuditError
Source§impl From<HookError> for AuditError
impl From<HookError> for AuditError
Source§impl From<MalwareDbError> for AuditError
impl From<MalwareDbError> for AuditError
Source§fn from(source: MalwareDbError) -> Self
fn from(source: MalwareDbError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AuditError
impl !RefUnwindSafe for AuditError
impl Send for AuditError
impl Sync for AuditError
impl Unpin for AuditError
impl !UnwindSafe for AuditError
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