Expand description
Trace file header types.
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).