Skip to main content

Module types

Module types 

Source
Expand description

Core protocol types shared across drafts.

Structs§

FullTrackName
Full Track Name: a Track Namespace and the Track Name within it.
Location
Location within a track: (Group, Object).
TrackNamespace
Track Namespace: an ordered set of Track Namespace Fields.
TrackNamespaceRules
What a MoQ Transport draft states about a Track Namespace in Section 2.4.1 “Track Naming”.

Enums§

ContentExists
Whether content exists (used in SUBSCRIBE_OK).
FilterType
Subscription filter types, named as draft-14 names them.
Forward
Forward state (0 = don’t forward, 1 = forward).
ForwardingPreference
Forwarding preference for objects.
GroupOrder
Group ordering preference.
ObjectStatus
Object status values, from MoQ Transport draft-14 Section 10.2.1.1 “Object Status”.
TokenAliasType
Authorization token alias types.

Functions§

check_group_range
Refuse a subscription whose End Group is earlier than its start group, where the End Group is inclusive and always present.
check_location_range
Refuse a range whose end is earlier than its start, where the End Group is the last Group ID and the End Object is the last Object ID plus one.
check_open_ended_group_range
Refuse a SUBSCRIBE_UPDATE whose End Group is earlier than its start group.
read_bytes
Read exactly len bytes from buf, returning them as a Vec<u8>.
reserve_bounded
Reserve space for count items without trusting count.