Enum rustsec::error::ErrorKind [−][src]
#[non_exhaustive]
pub enum ErrorKind {
BadParam,
Fix,
Io,
NotFound,
Parse,
Registry,
Repo,
Version,
}
Expand description
Custom error type for this library
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Invalid argument or parameter
Error performing an automatic fix
An error occurred performing an I/O operation (e.g. network, file)
Not found
Couldn’t parse response data
Registry-related error
Git operation failed
Errors related to versions
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations
pub fn as_fail(&self) -> &(dyn Fail + 'static)
pub fn as_fail(&self) -> &(dyn Fail + 'static)
Converts a reference to Self
into a dynamic trait object of Fail
.
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more