Struct jsonrpsee_types::error::ErrorObject
source · [−]pub struct ErrorObject<'a> {
pub code: ErrorCode,
pub message: Cow<'a, str>,
pub data: Option<&'a RawValue>,
}Expand description
JSON-RPC error object.
Fields
code: ErrorCodeCode
message: Cow<'a, str>Message
data: Option<&'a RawValue>Optional data
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for ErrorObject<'a>
impl<'a> Send for ErrorObject<'a>
impl<'a> Sync for ErrorObject<'a>
impl<'a> Unpin for ErrorObject<'a>
impl<'a> UnwindSafe for ErrorObject<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more