Module message

Source
Expand description

JSON-RPC 2.0 messages.

The main entrypoint here is the Message. The others are just building blocks and you should generally work with Message instead.

Structs§

Notification
A notification (doesn’t expect an answer).
Request
An RPC request.
Response
A response to an RPC.

Enums§

Broken
A broken message.
Message
One message of the JSON RPC protocol.
WireMessage
A trick to easily deserialize and detect valid JSON, but invalid Message.

Functions§

decoded_to_parsed
from_slice
Read a Message from a slice.
from_str
Read a Message from a string.

Type Aliases§

Parsed