Module msgpack

Source

Re-exports§

pub use rmp;
pub use encode::*;

Modules§

encode
This module provides custom traits Encode and Decode for (de)serialization from/to msgpack and corresponding encode, [’decode] functions, which use the traits with default configuration options.

Structs§

ArrayWriter
A helper struct for serializing msgpack arrays from arbitrary serializable types.
ValueIter
A helper struct for iterating over msgpack values.
ViaMsgpack
A wrapper type for passing values between rust and lua by converting them into msgpack first.

Enums§

Marker
Format markers.

Constants§

MARKER_NULL
Msgpack encoding of null.

Functions§

preserve_read
Reads appropriate amount of bytes according to marker from raw bytes of MessagePack, returning those bytes back in a Vec<u8> format.
skip_value
str_bounds
Reads from a slice of valid MessagePack stream values a string, preserving read bytes. Returns a pair of bytes indicating the beginning and end of a string.
write_array
Write to w a msgpack array with values from arr.
write_array_len
Initiate a msgpack array of len.