1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! MoQT client implementation for draft-13.
//!
//! Each draft lives in its own top-level module with a complete, independent
//! implementation: connection, endpoint state machine, event types, observer
//! trait, and per-flow state machines (subscribe, fetch, announce, track
//! status). No code is shared across drafts — each draft carries its own copy
//! because wire-level differences would make a shared layer leaky.
//!
//! Enable via the `draft13` feature.
//!
//! # Differences from draft-12
//!
//! Draft-13 renames and restructures a few message types:
//!
//! - `SubscribeAnnounces` / `SubscribeAnnouncesOk` / `SubscribeAnnouncesError`
//! / `UnsubscribeAnnounces` are renamed to `SubscribeNamespace` /
//! `SubscribeNamespaceOk` / `SubscribeNamespaceError` /
//! `UnsubscribeNamespace` (same wire IDs 0x11-0x14).
//! - `TrackStatusRequest` (0x0D) becomes `TrackStatus`: a subscribe-like
//! request carrying `subscriber_priority`, `group_order`, `forward`, and
//! `filter_type`.
//! - `TrackStatus` (0x0E) becomes `TrackStatusOk`: a subscribe_ok-like
//! response carrying `track_alias`, `expires`, `group_order`,
//! `content_exists`, and an optional `largest_location`.
//! - New `TrackStatusError` (0x0F): `request_id` + `error_code` +
//! `reason_phrase`.
//!
//! The version varint is `0xff000000 + 13`.
/// Outbound MoQT connection with MoQT framing over QUIC.
/// Unified endpoint state machine orchestrating all MoQT protocol flows.
/// Client event types emitted via the observer.
/// Fetch lifecycle state machine.
/// Announce / SubscribeNamespace state machines.
/// Connection observer trait for receiving client events.
/// Session state, setup validation, and request ID allocation.
/// Subscription lifecycle state machine.
/// Track status lifecycle state machine.