Module fibers_rpc::codec [] [src]

RPC message decoder/encoder.

Structs

BytesDecoder

An implementation of Decode traits which fills the given buffer T.

BytesEncoder

An implementation of Encode trait which simply copies the given byte sequence.

DefaultDecoderMaker

An implementation of MakeDecoder trait which makes decoders by using D::default().

IntoEncoderMaker

An implementation of MakeEncoder trait which makes E encoders by using E::Message::into().

JsonDecoder

An implementation of Decode trait which decodes messages by using serde_json::from_reader(..) function.

JsonEncoder

An implementation of Encode trait which encodes messages by using serde_json::to_writer(.., &T) function.

MsgPackDecoder

An implementation of Decode trait which decodes messages by using rmp_serde::decode::from_read(..) function.

MsgPackEncoder

An implementation of Encode trait which encodes messages by using rmp_serde::encode::write(.., &T) function.

SelfDecoder

An implementation of Decode trait which decodes messages by using T::DecodeFrom function.

SelfEncoder

An implementation of Encode trait which encodes messages by using T::encode_to method.

Traits

Decode

This trait allows for incrementally decoding an RPC message from a sequence of bytes.

DecodeFrom

This trait represents decodable messages (i.e., can be decoded without the help of any special decoders).

Encode

This trait allows for incrementally encoding an RPC message to a sequence of bytes.

EncodeTo

This trait represents encodable messages (i.e., can be encoded without the help of any special encoders).

MakeDecoder

This trait allows for making decoder instances.

MakeEncoder

This trait allows for making encoder instances.