Skip to main content

Module jsonrpc

Module jsonrpc 

Source
Expand description

Content-Length-framed JSON-RPC 2.0 over async I/O.

This is the primitive every LSP server uses to talk to its client. We own the framing and routing so the toolkit does not depend on an unmaintained third-party LSP server crate.

Structs§

JsonRpcError
A JSON-RPC 2.0 error object.
Message
An incoming JSON-RPC message.
MessageWriter
Writer half of a JSON-RPC connection, serialized so multiple tasks can send.

Enums§

FramingError
Errors from reading or writing JSON-RPC messages.
RequestId
JSON-RPC 2.0 message identifier. Either a request ID or absent for notifications.

Functions§

read_message
Read one Content-Length-framed JSON-RPC message from reader.