pub enum RustinelError {
Io {
path: PathBuf,
source: Error,
},
LockfileParse {
path: PathBuf,
message: String,
},
InvalidPolicy(String),
AdvisoryDb {
path: PathBuf,
message: String,
},
}Expand description
All fallible operations in rustinel-core return this error.
Messages are written to be human-readable; the CLI surfaces them directly.
Variants§
Implementations§
Trait Implementations§
Source§impl Debug for RustinelError
impl Debug for RustinelError
Source§impl Display for RustinelError
impl Display for RustinelError
Source§impl Error for RustinelError
impl Error for RustinelError
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 !RefUnwindSafe for RustinelError
impl !UnwindSafe for RustinelError
impl Freeze for RustinelError
impl Send for RustinelError
impl Sync for RustinelError
impl Unpin for RustinelError
impl UnsafeUnpin for RustinelError
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