Module coding

Module coding 

Source
Expand description

Contains encoding and decoding helpers.

Modules§

buf
Utilities for working with buffers.

Structs§

Alpn
A version number negotiated during the setup.
BoundsExceeded
The number is too large to fit in a VarInt (62 bits).
Bytes
A cheaply cloneable and sliceable chunk of contiguous memory.
BytesMut
A unique reference to a contiguous slice of memory.
Reader
A reader for decoding messages from a stream.
Sizer
A BufMut implementation that only counts the size of the buffer.
Stream
A Writer and Reader pair for a single stream.
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
Version
A version number negotiated during the setup.
Versions
A list of versions in preferred order.
Writer
A wrapper around a web_transport_trait::SendStream that will reset on Drop.

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
Read the from the buffer using the given version.
Encode
Write the value to the buffer using the given version.