Module tokio_jsonrpc::codec [] [src]

The codecs to encode and decode messages from a stream of bytes.

You can choose to use either line separated one (Line) or boundary separated one (Boundary). The first one needs the messages to be separated by newlines and not to contain newlines in their representation. On the other hand, it can recover from syntax error in a message and you can respond with an error instead of terminating the connection.

Structs

Boundary

A codec working with JSONRPC 2.0 messages.

DirtyLine

A codec working with JSONRPC 2.0 messages on top of badly encoded utf-8.

Line

A codec working with JSONRPC 2.0 messages.