pub enum Error {
Show 19 variants
NotFound {
path: String,
},
TomlParse {
path: String,
source: Error,
},
TomlSerialize {
source: Error,
},
Fetch {
path: String,
message: String,
},
PluginNotFound {
name: String,
},
VersionNotFound {
name: String,
version: String,
},
Io {
message: String,
source: Error,
},
Download {
message: String,
},
HashMismatch {
name: String,
version: String,
expected: String,
actual: String,
},
UntrustedPlugin {
name: String,
},
RnpLoad {
message: String,
},
RnpVerify {
message: String,
},
SignatureFormat {
path: String,
},
PublicKeyFormat {
path: String,
},
SignatureInvalid {
message: String,
},
VerificationSubprocess {
message: String,
},
InvalidPath {
path: String,
},
NotInstalled {
name: String,
},
Config {
message: String,
},
}Variants§
NotFound
TomlParse
TomlSerialize
Fields
§
source: ErrorFetch
PluginNotFound
VersionNotFound
Io
Download
HashMismatch
UntrustedPlugin
RnpLoad
RnpVerify
SignatureFormat
PublicKeyFormat
SignatureInvalid
VerificationSubprocess
InvalidPath
NotInstalled
Config
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 ErrorCompat for Error
impl ErrorCompat for Error
§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl<__T0> IntoError<Error> for NotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for NotFoundSnafu<__T0>
Source§impl<__T0> IntoError<Error> for TomlParseSnafu<__T0>
impl<__T0> IntoError<Error> for TomlParseSnafu<__T0>
Source§impl IntoError<Error> for TomlSerializeSnafu
impl IntoError<Error> for TomlSerializeSnafu
Source§impl<__T0, __T1> IntoError<Error> for FetchSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for FetchSnafu<__T0, __T1>
Source§impl<__T0> IntoError<Error> for PluginNotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for PluginNotFoundSnafu<__T0>
Source§impl<__T0, __T1> IntoError<Error> for VersionNotFoundSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for VersionNotFoundSnafu<__T0, __T1>
Source§impl<__T0> IntoError<Error> for DownloadSnafu<__T0>
impl<__T0> IntoError<Error> for DownloadSnafu<__T0>
Source§impl<__T0, __T1, __T2, __T3> IntoError<Error> for HashMismatchSnafu<__T0, __T1, __T2, __T3>
impl<__T0, __T1, __T2, __T3> IntoError<Error> for HashMismatchSnafu<__T0, __T1, __T2, __T3>
Source§impl<__T0> IntoError<Error> for UntrustedPluginSnafu<__T0>
impl<__T0> IntoError<Error> for UntrustedPluginSnafu<__T0>
Source§impl<__T0> IntoError<Error> for RnpLoadSnafu<__T0>
impl<__T0> IntoError<Error> for RnpLoadSnafu<__T0>
Source§impl<__T0> IntoError<Error> for RnpVerifySnafu<__T0>
impl<__T0> IntoError<Error> for RnpVerifySnafu<__T0>
Source§impl<__T0> IntoError<Error> for SignatureFormatSnafu<__T0>
impl<__T0> IntoError<Error> for SignatureFormatSnafu<__T0>
Source§impl<__T0> IntoError<Error> for PublicKeyFormatSnafu<__T0>
impl<__T0> IntoError<Error> for PublicKeyFormatSnafu<__T0>
Source§impl<__T0> IntoError<Error> for SignatureInvalidSnafu<__T0>
impl<__T0> IntoError<Error> for SignatureInvalidSnafu<__T0>
Source§impl<__T0> IntoError<Error> for VerificationSubprocessSnafu<__T0>
impl<__T0> IntoError<Error> for VerificationSubprocessSnafu<__T0>
Source§impl<__T0> IntoError<Error> for InvalidPathSnafu<__T0>
impl<__T0> IntoError<Error> for InvalidPathSnafu<__T0>
Source§impl<__T0> IntoError<Error> for NotInstalledSnafu<__T0>
impl<__T0> IntoError<Error> for NotInstalledSnafu<__T0>
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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