Expand description
§moq-lite (deprecated)
This crate has been renamed to moq-net to clarify
that it is the networking layer for Media over QUIC. Under the hood it negotiates one
of two wire protocols at session setup: the simplified moq-lite protocol or the full
IETF moq-transport protocol.
moq-lite now re-exports moq-net so existing code keeps building. It will not
receive future updates. Migrate by replacing the dependency and changing moq_lite::
to moq_net::.
Modules§
- bytes
- Provides abstractions for working with bytes.
Structs§
- Bandwidth
Consumer - Consumes bandwidth estimates, allowing reads and async change notifications.
- Bandwidth
Producer - Produces bandwidth estimates, notifying consumers when the value changes.
- Bounds
Exceeded - The number is too large to fit in a VarInt (62 bits).
- Broadcast
- A collection of media tracks that can be published and subscribed to.
- Broadcast
Consumer - Subscribe to arbitrary broadcast/tracks.
- Broadcast
Dynamic - Handles on-demand track creation for a broadcast.
- Broadcast
Producer - Manages tracks within a broadcast.
- Client
- A MoQ client session builder.
- Frame
- A chunk of data with an upfront size.
- Frame
Consumer - Used to consume a frame’s worth of data, streaming as bytes arrive.
- Frame
Producer - Writes a frame’s payload in one or more chunks.
- Group
- A group contains a sequence number because they can arrive out of order.
- Group
Consumer - Consume a group, frame-by-frame.
- Group
Producer - Writes frames to a group in order.
- Origin
- A relay origin, identified by a 62-bit varint on the wire.
- Origin
Consumer - Consumes announced broadcasts matching against an optional prefix.
- Origin
List - Bounded list of
Originentries, typically the hop chain of a broadcast. - Origin
Producer - Announces broadcasts to consumers over the network.
- Path
- A broadcast path that provides safe prefix matching operations.
- Path
Prefixes - A deduplicated list of path prefixes.
- Server
- A MoQ server session builder.
- Session
- A MoQ transport session, wrapping a WebTransport connection.
- Time
Overflow - Returned when a
Timescaleoperation would exceed the QUIC VarInt range (2^62 - 1) or overflow during scale conversion or arithmetic. - Timescale
- A timestamp representing the presentation time in a given scale. ex. 1000 for milliseconds.
- TooMany
Origins - Returned when an operation would grow an
OriginListpast its hop-count cap. - Track
- A track is a collection of groups, delivered out-of-order until expired.
- Track
Consumer - A consumer for a track, used to read groups.
- Track
Producer - A producer for a track, used to create new groups.
- Versions
- A set of supported MoQ versions.
Enums§
- Decode
Error - A decode error.
- Encode
Error - An error that occurs during encoding.
- Error
- A list of possible errors that can occur during the session.
- Version
- A MoQ protocol version.
Constants§
- ALPNS
- ALPN strings for supported versions.
Traits§
- AsPath
- A trait for types that can be converted to a
Path.
Type Aliases§
- Origin
Announce - A broadcast path and its associated consumer, or None if closed.
- Path
Owned - An owned version of
Pathwith a'staticlifetime. - Result
- Time
- A timestamp representing the presentation time in milliseconds.