moqtap_client/draft08/mod.rs
1//! MoQT client implementation for draft-08.
2//!
3//! Each draft lives in its own top-level module with a complete, independent
4//! implementation: connection, endpoint state machine, event types, observer
5//! trait, and per-flow state machines (subscribe, fetch, announce, track
6//! status). No code is shared across drafts — each draft carries its own copy
7//! because wire-level differences would make a shared layer leaky.
8//!
9//! Enable via the `draft08` feature.
10//!
11//! # Differences from draft-07
12//!
13//! * `SubscribesBlocked` (type 0x1A) is a new control message.
14//! * `Subscribe` AbsoluteRange filter drops `end_object`; only `end_group`.
15//! * `SubscribeUpdate` drops `end_object`.
16//! * `SubscribeDone` is restructured: it now carries `stream_count` instead
17//! of the conditional `final_group` / `final_object` pair.
18//! * `Fetch` has two modes (Standalone = 1, Joining = 2). Joining mode takes
19//! `joining_subscribe_id` + `preceding_group_offset`.
20//! * `FetchOk` always includes `largest_group_id` and `largest_object_id`.
21//! * Subgroup / datagram / fetch object headers carry `extension_count` +
22//! opaque extension bytes.
23//! * New `DatagramStatus` stream type (0x02) for status-only datagrams.
24//! * `ObjectStatus` value 5 changes meaning: draft-07 Section 7.1.1.1 assigns
25//! it "end of Subgroup", and draft-08 Section 7.1.1.1 reassigns it "end of
26//! Track" — Group ID one greater than the largest produced, Object ID zero.
27//! Value 4 is "end of Track and Group" in both drafts; what draft-08 adds
28//! there is the receiver's protocol-error check on the two ids.
29
30/// Outbound MoQT connection with MoQT framing over QUIC.
31pub mod connection;
32/// Unified endpoint state machine orchestrating all MoQT protocol flows.
33pub mod endpoint;
34pub mod event;
35/// Fetch lifecycle state machine.
36pub mod fetch;
37/// Announce / SubscribeAnnounces state machines.
38pub mod namespace;
39pub mod observer;
40pub mod session;
41/// Subscription lifecycle state machine.
42pub mod subscription;
43/// Track status lifecycle state machine.
44pub mod track_status;