Skip to main content

Module object_properties

Module object_properties 

Source
Expand description

Object Properties, called Extension Headers before draft-17, read as an ordered list.

The object readers keep a property block as the bytes the wire carried, and a relay forwards those untouched. parse_object_properties reads them by the rules of one draft. A list rather than a map: a Type may repeat, an odd Type carries bytes rather than a number, and a Type the draft does not name still has to be kept.

Re-exportsยง

use crate::error::CodecError; ๐Ÿ”’
use crate::kvp::KvpError; ๐Ÿ”’
use crate::varint::Moqt17; ๐Ÿ”’
use crate::varint::Moqt18; ๐Ÿ”’
use crate::varint::VarInt; ๐Ÿ”’
use crate::varint::VarIntError; ๐Ÿ”’
use crate::version::DraftVersion; ๐Ÿ”’
use crate::version::VarIntEncoding; ๐Ÿ”’

Structsยง

ObjectProperty
One property, as the wire carried it.
PropertyRules
What separates one draftโ€™s property block from anotherโ€™s.

Enumsยง

PropertyValue
A propertyโ€™s value.

Constantsยง

IMMUTABLE ๐Ÿ”’
MAX_VALUE_LEN ๐Ÿ”’

Functionsยง

malformed ๐Ÿ”’
parse_object_properties
Read block, the contents of one objectโ€™s property block without its length or count prefix, by the rules of draft.
parse_with
parse_object_properties with the rules given directly.
read_run ๐Ÿ”’
read_varint ๐Ÿ”’