pub struct WireError<'a> {
pub code: i64,
pub message: &'a str,
pub data: Option<&'a RawValue>,
}Expand description
An error object, borrowed.
No PartialEq: RawValue does not implement it, because the question
“are these the same JSON?” has two honest answers (equal as trees, equal as
bytes) and serde_json declines to pick one. Callers that need it compare
.get(), which is the byte-exact answer and the one the passthrough path
wants anyway.
Fields§
§code: i64The numeric error code.
message: &'a strThe human-readable message.
data: Option<&'a RawValue>Anything else the sender attached, kept for the passthrough path.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for WireError<'a>
impl<'a> RefUnwindSafe for WireError<'a>
impl<'a> Send for WireError<'a>
impl<'a> Sync for WireError<'a>
impl<'a> Unpin for WireError<'a>
impl<'a> UnsafeUnpin for WireError<'a>
impl<'a> UnwindSafe for WireError<'a>
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