Module bincode_core::config[][src]

Contains helper structs to customize the way your structs are (de)serialized.

Structs

AllowTrailing

A TrailingBytes config that will allow trailing bytes in slices after deserialization.

BigEndian

Big-endian byte ordering.

Bounded

A SizeLimit that restricts serialized or deserialized messages from exceeding a certain byte length.

DefaultOptions

The default options for bincode serialization/deserialization.

FixintEncoding

Fixed-size integer encoding.

Infinite

A SizeLimit without a limit! Use this if you don’t care about the size of encoded or decoded messages.

LittleEndian

Little-endian byte ordering.

NativeEndian

The native byte ordering of the current system.

RejectTrailing

A TrailingBytes config that will cause bincode to produce an error if bytes are left over in the slice when deserialization is complete.

VarintEncoding

Variable-size integer encoding (excepting [ui]8).

WithOtherEndian

A configuration struct with a user-specified endian order

WithOtherIntEncoding

A configuration struct with a user-specified length encoding

WithOtherLimit

A configuration struct with a user-specified byte limit

WithOtherTrailing

A configuration struct with a user-specified trailing bytes behavior.

Enums

LimitError

Reached an error regarding the size limit that was passed to the options.

Traits

Options

A configuration builder trait whose options Bincode will use while serializing and deserializing.