pub enum UciError {
NotUtf8,
Json(String),
Xml(String),
UnknownElement(String),
UnknownType(String),
Xsd(String),
At {
path: String,
message: String,
},
TooDeep {
path: String,
},
}Expand description
Why a payload could not be converted, or a schema could not be compiled.
Conversion is forgiving about undeclared fields; those are not
errors here. Self::TooDeep is the stack-safety bound, not a
schema constraint. Self::Xsd is compile-time only.
Variants§
Implementations§
Trait Implementations§
Source§impl Error for UciError
impl Error for UciError
1.30.0 · 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()
impl Eq for UciError
impl StructuralPartialEq for UciError
Auto Trait Implementations§
impl Freeze for UciError
impl RefUnwindSafe for UciError
impl Send for UciError
impl Sync for UciError
impl Unpin for UciError
impl UnwindSafe for UciError
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