Enum tokio_jsonrpc::message::Broken
[−]
[src]
pub enum Broken { Unmatched(Value), SyntaxError(String), }
A broken message.
Protocol-level errors.
Variants
Unmatched(Value)
It was valid JSON, but doesn't match the form of a JSONRPC 2.0 message.
SyntaxError(String)
Invalid JSON.
Methods
impl Broken
[src]
fn reply(&self) -> Message
Generate an appropriate error message.
The error message for these things are specified in the RFC, so this just creates an error with the right values.
Trait Implementations
impl Debug for Broken
[src]
impl Clone for Broken
[src]
fn clone(&self) -> Broken
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more