Expand description
Traits for converting between RPC messages and Rust values.
These traits are used by generated interfaces from the [interface!
] macro.
Normally, you would only implement these traits for your own serialization format.
However, the traits are covered by semver guarantees, so feel free to use them in your own code.
Traits
- Trait for formats that can decode
T
from a message body. - Trait for formats that can encode
T
to a message body. - A message format, used to encode/decode RPC messages from/to Rust types.
- Trait for values that can be decoded from a message with a specific
Format
. - Trait for values that can be encoded to a message with a specific
Format
.