pub struct Error<'a, E> {
pub code: ErrorCode,
pub message: Cow<'a, str>,
pub data: Option<E>,
}
Expand description
A JSON-RPC 2.0 error.
Fields§
§code: ErrorCode
The error code.
message: Cow<'a, str>
The error message.
data: Option<E>
Additional data about the error.
Trait Implementations§
Auto Trait Implementations§
impl<'a, E> Freeze for Error<'a, E>where
E: Freeze,
impl<'a, E> RefUnwindSafe for Error<'a, E>where
E: RefUnwindSafe,
impl<'a, E> Send for Error<'a, E>where
E: Send,
impl<'a, E> Sync for Error<'a, E>where
E: Sync,
impl<'a, E> Unpin for Error<'a, E>where
E: Unpin,
impl<'a, E> UnwindSafe for Error<'a, E>where
E: UnwindSafe,
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