Skip to main content

Module snapshot

Module snapshot 

Source
Expand description

Lossy latest-value binary publishing over moq-net tracks.

One opaque value updated over time, for consumers that only care about the current state (a poster image, a serialized state blob). This mode is lossy by design: a consumer yields only the most recent value. A late joiner (or a consumer that falls behind) jumps straight to the newest group, and older groups are dropped entirely. For an ordered log where every payload is preserved, use stream instead.

On the wire each value is one group holding one frame, so a group is self-contained and a consumer never needs an older one. With Config::compression set to Compression::Deflate, that frame is its own raw DEFLATE stream; there is no window to share across a single-frame group.

Re-exports§

pub use consumer::Consumer;
pub use producer::Producer;

Modules§

consumer
Consuming a binary value from a track.
producer
Publishing a binary value over a track.

Structs§

Config
Codec options for a snapshot track.