pub trait ToMsgPack: Serialize {
// Provided methods
fn to_msg_pack(&self) -> Result<Vec<u8>> { ... }
fn to_msg_pack_base64(&self) -> Result<String> { ... }
}
Provided Methods§
fn to_msg_pack(&self) -> Result<Vec<u8>>
fn to_msg_pack_base64(&self) -> Result<String>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.