pub enum ShieldError {
Parse {
file: String,
message: String,
},
Adapter {
framework: String,
message: String,
},
NoAdapter(String),
Config(String),
Rule {
rule_id: String,
message: String,
},
Output(String),
Io(Error),
Json(Error),
Toml(Error),
Internal(String),
}Variants§
Parse
Adapter
NoAdapter(String)
Config(String)
Rule
Output(String)
Io(Error)
Json(Error)
Toml(Error)
Internal(String)
Implementations§
Trait Implementations§
Source§impl Debug for ShieldError
impl Debug for ShieldError
Source§impl Display for ShieldError
impl Display for ShieldError
Source§impl Error for ShieldError
impl Error for ShieldError
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<Error> for ShieldError
impl From<Error> for ShieldError
Source§impl From<Error> for ShieldError
impl From<Error> for ShieldError
Auto Trait Implementations§
impl Freeze for ShieldError
impl !RefUnwindSafe for ShieldError
impl Send for ShieldError
impl Sync for ShieldError
impl Unpin for ShieldError
impl UnsafeUnpin for ShieldError
impl !UnwindSafe for ShieldError
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