Enum tokio_jsonrpc::message::Broken [] [src]

pub enum Broken {
    Unmatched(Value),
    SyntaxError(String),
}

A broken message.

Protocol-level errors.

Variants

It was valid JSON, but doesn't match the form of a JSONRPC 2.0 message.

Invalid JSON.

Methods

impl Broken
[src]

[src]

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]

[src]

Formats the value using the given formatter.

impl Clone for Broken
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Broken
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.