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
//! JSON publishing over [`moq-net`](moq_net) tracks, in two modes:
//!
//! - [`snapshot`]: **lossy**. One JSON value updated over time; a consumer only gets the most
//! recent value. Intermediate updates are collapsed and older groups are dropped.
//! - [`stream`]: **lossless**. An ordered append-log of self-contained records; every record is
//! preserved and delivered in order, nothing is ever superseded.
//!
//! Pick [`snapshot`] when consumers care about "what is the value now" (a catalog, a status
//! document) and [`stream`] when they care about every record (an event log, a media timeline).
pub use crate;
/// Errors produced while publishing or consuming JSON.
/// A [`Result`](std::result::Result) using this crate's [`Error`].
pub type Result<T> = Result;