Expand description
Trace file header types.
Re-exportsΒ§
use std::collections::BTreeMap;πuse ciborium::Value;πuse crate::error::MoqTraceError;π
StructsΒ§
- Sampling
Info - Sampling and filtering metadata. Present only when events were dropped or filtered at the source.
- Segment
Info - Per-segment metadata.
- Trace
Header - Session metadata written at the start of a
.moqtracefile, and at the start of every segment in a segmented one.
EnumsΒ§
- Detail
Level - Detail level β declares what was recorded.
- Drop
Policy - Drop policy applied when a sampled source could not keep up.
- Perspective
- Recording perspective β who captured the trace.
FunctionsΒ§
- as_i64 π
- Read a signed integer, accepting the float form. See
as_u64. - as_u64 π
- Read an unsigned integer, accepting the float form CBOR also permits.
- deduplicated π
- The entries of a map to be written, with no key twice: the first entry for a key is kept in its place and the rest are dropped.
- find π
- find_
bool π - find_
text π - find_
uint π - goes_
to_ πstore - Whether
keybelongs in a mapβs unrecognised-key store rather than in one of the mapβs own fields, given that mapβswrites_key. - normalised π
- Rewrite a value into the encoding this format requires of a writer, leaving what it says alone.
- number_
value π - Write a number as a CBOR integer when its value is integral, and as a float only when it is not.
- required_
text π - Read a required text key, distinguishing βabsentβ from βpresent and not textβ.
- required_
uint π - Read a required unsigned-integer key. See
required_text. - same_
key π - Whether two keys about to be written are one key in the file.
- store_
entries π - The store entries to write after a mapβs own keys.
- unrecognised π
- Every entry of
pairsthe decoded map does not write back out of a field of its own: a key this crate has never heard of, a key it knows whose value it could not use β and a second entry for a key whose first entry a field did take. - written_
entries π - Map entries a writer is about to emit out of pairs that came from a file:
normalisedinto the encoding SPEC.md requires, and with no key written twice (deduplicated).