pub struct ErrorFields {
pub class: ErrorClass,
pub message: String,
pub fields: Vec<(&'static str, JsonValue)>,
}Expand description
An error with properties beside its message (JsError::Fields,
Thrown::Fields).
Fields§
§class: ErrorClassIts class.
message: StringIts message.
fields: Vec<(&'static str, JsonValue)>Its properties, in order (code, syscall, path, errno, …).
Implementations§
Trait Implementations§
Source§impl Clone for ErrorFields
impl Clone for ErrorFields
Source§impl Debug for ErrorFields
impl Debug for ErrorFields
impl Eq for ErrorFields
Source§impl PartialEq for ErrorFields
impl PartialEq for ErrorFields
impl StructuralPartialEq for ErrorFields
Auto Trait Implementations§
impl Freeze for ErrorFields
impl RefUnwindSafe for ErrorFields
impl Send for ErrorFields
impl Sync for ErrorFields
impl Unpin for ErrorFields
impl UnsafeUnpin for ErrorFields
impl UnwindSafe for ErrorFields
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.