pub struct MsgpackSerializer;Expand description
MessagePack serializer
High-performance binary serialization using MessagePack format.
This is the default serializer for production use.
Implementations§
Trait Implementations§
Source§impl CheckpointSerializer for MsgpackSerializer
impl CheckpointSerializer for MsgpackSerializer
Source§fn serialize_value(&self, value: &Value) -> Result<Vec<u8>, CheckpointError>
fn serialize_value(&self, value: &Value) -> Result<Vec<u8>, CheckpointError>
Serialize a JSON value to bytes Read more
Source§fn deserialize_value(&self, data: &[u8]) -> Result<Value, CheckpointError>
fn deserialize_value(&self, data: &[u8]) -> Result<Value, CheckpointError>
Deserialize bytes back to a JSON value Read more
Source§fn serialize<T: Serialize>(&self, value: &T) -> Result<Vec<u8>, CheckpointError>
fn serialize<T: Serialize>(&self, value: &T) -> Result<Vec<u8>, CheckpointError>
Serialize any serializable type to bytes Read more
Source§fn deserialize<T: DeserializeOwned>(
&self,
data: &[u8],
) -> Result<T, CheckpointError>
fn deserialize<T: DeserializeOwned>( &self, data: &[u8], ) -> Result<T, CheckpointError>
Deserialize bytes to any deserializable type Read more
Source§fn format(&self) -> SerializationFormat
fn format(&self) -> SerializationFormat
Get the format identifier
Source§impl Clone for MsgpackSerializer
impl Clone for MsgpackSerializer
Source§fn clone(&self) -> MsgpackSerializer
fn clone(&self) -> MsgpackSerializer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MsgpackSerializer
impl Debug for MsgpackSerializer
Source§impl Default for MsgpackSerializer
impl Default for MsgpackSerializer
Source§fn default() -> MsgpackSerializer
fn default() -> MsgpackSerializer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MsgpackSerializer
impl RefUnwindSafe for MsgpackSerializer
impl Send for MsgpackSerializer
impl Sync for MsgpackSerializer
impl Unpin for MsgpackSerializer
impl UnsafeUnpin for MsgpackSerializer
impl UnwindSafe for MsgpackSerializer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more