FromMsgPack

Trait FromMsgPack 

Source
pub trait FromMsgPack: Sized + for<'de> Deserialize<'de> {
    // Provided method
    fn from_msgpack_bytes(data: &[u8]) -> Result<Self, Error> { ... }
}
Expand description

Provides deserialization from MsgPack encoded bytes.

Provided Methods§

Source

fn from_msgpack_bytes(data: &[u8]) -> Result<Self, Error>

Deserialize an object from MsgPack encoded bytes.

§Errors

Returns serialization errors.

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.

Implementors§

Source§

impl<T> FromMsgPack for T
where T: Serializable,