Trait etebase::utils::MsgPackSerilization
source · pub trait MsgPackSerilization {
type Output;
// Required methods
fn to_msgpack(&self) -> Result<Vec<u8>>;
fn from_msgpack(data: &[u8]) -> Result<Self::Output>;
}
Expand description
A trait for serializing and deserializing to MsgPack
Required Associated Types§
Required Methods§
sourcefn to_msgpack(&self) -> Result<Vec<u8>>
fn to_msgpack(&self) -> Result<Vec<u8>>
Convert self to a msgpack encoded buffer