Module lsp_rs::server [] [src]

Implements encoding/decoding support and types for the server side of the Language Server protocol.

Provides an implementation of tokio_core::io::Codec to decode IncomingServerMessages and encode OutgoingServerMessages

Structs

IncomingServerMessage

A completely parsed message and its headers sent from the client to the server.

NotificationMessage

A Notification from the client to the server.

OutgoingServerMessage

A complete message to send from the server to the client.

RLSCodec

Implements decoding of IncomingServerMessage and encoding of OutgoingServerMessage

RequestMessage

A Request from the client to the server.

RequestResponseError

An error response from the server to the client in response to a specific request.

RequestResponseMessage

A message from the server to the client in response to a specific request.

Enums

ClientMessage

Represents a response from the server to the client.

ClientNotificationMessage
NotificationMethod
RequestMethod
RequestResponseData
ServerMessage

Represents either a request or a notification sent from the client to the server.

Statics

INTERNAL_ERROR
INVALID_PARAMS
INVALID_REQUEST
METHOD_NOT_FOUND
PARSE_ERROR
SERVER_ERROR_END
SERVER_ERROR_START
SERVER_NOT_INITIALIZED
UNKNOWN_ERROR_CODE

Functions

parse_server_message