Trait ToMsgPack
pub trait ToMsgPack: Serialize {
// Provided method
fn to_msgpack_bytes(&self) -> Result<Bytes, Error> { ... }
}Expand description
Provides serialization to MsgPack encoded bytes.
Provided Methods§
fn to_msgpack_bytes(&self) -> Result<Bytes, Error>
fn to_msgpack_bytes(&self) -> Result<Bytes, Error>
Serialize an object to MsgPack encoded bytes.
§Errors
Returns an error if MessagePack serialization fails.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".