Module model

Source
Expand description

Decoding and encoding msgpack rpc messages from/to neovim.

Enums§

RpcMessage
A msgpack-rpc message, see https://github.com/msgpack-rpc/msgpack-rpc/blob/master/spec.md

Traits§

IntoVal

Functions§

decode
Continously reads from reader, pushing onto rest. Then tries to decode the contents of rest. If it succeeds, returns the message, and leaves any non-decoded bytes in rest. If we did not read enough for a full message, read more. Return on all other errors.
encode
Encode the given message into the BufWriter. Flushes the writer when finished.
encode_sync
Encode the given message into the writer.