Module toy_rpc::codec [−][src]
Expand description
SplittibleServerCodec
and SplittableClientCodec
are defined in this module, and they are implemented
for the DefaultCodec
Default codec implementations are feature gated behind the following features
serde_bincode
, serde_json
, serde_cbor
, serde_rmp
.
Re-exports
pub use Codec as DefaultCodec; |
Modules
bincode | serde_bincode and non-serde_json and non-serde_cbor and non-serde_rmp Impplementation of |
cbor | serde_cbor and non-serde_json and non-serde_bincode and non-serde_rmp Impplementation of |
json | serde_json and non-serde_bincode and non-serde_cbor and non-serde_rmp Impplementation of |
rmp | serde_rmp and non-serde_cbor and non-serde_json and non-serde_bincode Impplementation of |
split | Implements |
Structs
Codec | Default codec. |
Traits
CodecRead | A codec that can read the header and body of a message |
CodecWrite | A codec that can write the header and body of a message |
EraseDeserializer | This trait should be implemented by a codec to allow creating a |
Marshal | This trait should be implemented by serializer (Codec) to serialize messages into bytes |
Unmarshal | This trait should be implemented by deserializer (Codec) to deserialize messages from bytes |