Module coding

Source
Expand description

This module contains encoding and decoding helpers.

Modules§

buf
Utilities for working with buffers.

Structs§

BoundsExceeded
Bytes
A cheaply cloneable and sliceable chunk of contiguous memory.
BytesMut
A unique reference to a contiguous slice of memory.
Sizer
TryGetError
Error type for the try_get_ methods of Buf. Indicates that there were not enough remaining bytes in the buffer while attempting to get a value from a Buf with one of the try_get_ methods.
VarInt
An integer less than 2^62

Enums§

DecodeError
A decode error.

Traits§

Buf
Read bytes from a buffer.
BufMut
A trait for values that provide sequential write access to bytes.
Decode
Encode
Message
A trait for messages that are automatically size-prefixed during encoding/decoding.