pub enum Error {
NullPointer {
param: &'static str,
backtrace: Backtrace,
},
InvalidUTF8 {
backtrace: Backtrace,
source: Utf8Error,
},
ValueNotFound,
InvalidCompartment {
value: u32,
},
NotImplemented {
what: &'static str,
},
UnknownBackend {
name: String,
},
InvalidPath {
component: String,
},
IdentitySignatureInvalid,
Io {
source: Error,
backtrace: Backtrace,
},
Wrapped {
message: String,
},
}Variants§
NullPointer
InvalidUTF8
ValueNotFound
InvalidCompartment
NotImplemented
UnknownBackend
InvalidPath
IdentitySignatureInvalid
Io
Wrapped
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 NullPointerSnafu<__T0>
impl<__T0> IntoError<Error> for NullPointerSnafu<__T0>
Source§impl IntoError<Error> for InvalidUTF8Snafu
impl IntoError<Error> for InvalidUTF8Snafu
Source§impl IntoError<Error> for ValueNotFoundSnafu
impl IntoError<Error> for ValueNotFoundSnafu
Source§impl<__T0> IntoError<Error> for InvalidCompartmentSnafu<__T0>
impl<__T0> IntoError<Error> for InvalidCompartmentSnafu<__T0>
Source§impl<__T0> IntoError<Error> for NotImplementedSnafu<__T0>
impl<__T0> IntoError<Error> for NotImplementedSnafu<__T0>
Source§impl<__T0> IntoError<Error> for UnknownBackendSnafu<__T0>
impl<__T0> IntoError<Error> for UnknownBackendSnafu<__T0>
Source§impl<__T0> IntoError<Error> for InvalidPathSnafu<__T0>
impl<__T0> IntoError<Error> for InvalidPathSnafu<__T0>
Source§impl IntoError<Error> for IdentitySignatureInvalidSnafu
impl IntoError<Error> for IdentitySignatureInvalidSnafu
Auto Trait Implementations§
impl !Freeze for Error
impl !RefUnwindSafe for Error
impl !UnwindSafe 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