#[non_exhaustive]pub enum Mode {
Snapshot,
Stream,
Unknown(String),
}Expand description
How a metadata track’s groups carry its payloads.
The two modes are equally primary and there is no safe default: reading an append log as a
latest-value document silently drops every record but the last. So a
JsonConfig or BinaryConfig
always states its mode, and a consumer that doesn’t recognize the value
(Unknown) must ignore the track rather than guess.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Snapshot
Lossy latest-value: each group carries one complete payload and supersedes the previous group, so a consumer reads only the newest.
JSON tracks may follow the first frame of a group with RFC 7396 merge-patch deltas; binary tracks carry a single frame per group.
Stream
Lossless append log: a single group that is never rolled, one payload per frame, delivered in order with nothing superseded.
Unknown(String)
A mode this build does not recognize, preserved verbatim.
A consumer MUST ignore the track: it cannot know whether skipping to the newest group would lose records.
Trait Implementations§
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnsafeUnpin for Mode
impl UnwindSafe for Mode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.