#[non_exhaustive]pub enum HapError {
Json(Error),
NotAnObject {
found: &'static str,
},
}Expand description
Why a metadata document could not be read at all.
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.
Json(Error)
Not JSON: empty, truncated, malformed, or nested past
serde_json’s recursion limit.
NotAnObject
The document parsed but its root is an array, string or other non-object.
Trait Implementations§
Source§impl Error for HapError
impl Error for HapError
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 HapError
impl !UnwindSafe for HapError
impl Forget for HapError
impl Freeze for HapError
impl Move for HapError
impl Send for HapError
impl Sync for HapError
impl Unpin for HapError
impl UnsafeUnpin for HapError
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