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<(), ()>
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.