pub trait DataWrap: Sized + Debug {
const MSGPCK: u8;
const STRING: &'static str;
// Required methods
fn decode<R: RmpRead>(rd: &mut R) -> Result<Self, ()>;
fn encode<W: RmpWrite>(wr: &mut W, val: Self) -> Result<(), ()>;
}
Required Associated Constants§
Required Methods§
fn decode<R: RmpRead>(rd: &mut R) -> Result<Self, ()>
fn encode<W: RmpWrite>(wr: &mut W, val: Self) -> Result<(), ()>
Object Safety§
This trait is not object safe.