Skip to main content

Crate moq_lite

Crate moq_lite 

Source
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§

BandwidthConsumer
Consumes bandwidth estimates, allowing reads and async change notifications.
BandwidthProducer
Produces bandwidth estimates, notifying consumers when the value changes.
BoundsExceeded
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.
BroadcastConsumer
Subscribe to arbitrary broadcast/tracks.
BroadcastDynamic
Handles on-demand track creation for a broadcast.
BroadcastProducer
Manages tracks within a broadcast.
Client
A MoQ client session builder.
Frame
A chunk of data with an upfront size.
FrameConsumer
Used to consume a frame’s worth of data, streaming as bytes arrive.
FrameProducer
Writes a frame’s payload in one or more chunks.
Group
A group contains a sequence number because they can arrive out of order.
GroupConsumer
Consume a group, frame-by-frame.
GroupProducer
Writes frames to a group in order.
Origin
A relay origin, identified by a 62-bit varint on the wire.
OriginConsumer
Consumes announced broadcasts matching against an optional prefix.
OriginList
Bounded list of Origin entries, typically the hop chain of a broadcast.
OriginProducer
Announces broadcasts to consumers over the network.
Path
A broadcast path that provides safe prefix matching operations.
PathPrefixes
A deduplicated list of path prefixes.
Server
A MoQ server session builder.
Session
A MoQ transport session, wrapping a WebTransport connection.
TimeOverflow
Returned when a Timescale operation 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.
TooManyOrigins
Returned when an operation would grow an OriginList past its hop-count cap.
Track
A track is a collection of groups, delivered out-of-order until expired.
TrackConsumer
A consumer for a track, used to read groups.
TrackProducer
A producer for a track, used to create new groups.
Versions
A set of supported MoQ versions.

Enums§

DecodeError
A decode error.
EncodeError
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§

OriginAnnounce
A broadcast path and its associated consumer, or None if closed.
PathOwned
An owned version of Path with a 'static lifetime.
Result
Time
A timestamp representing the presentation time in milliseconds.