Skip to main content

Module header

Module header 

Source
Expand description

Trace file header types.

Structs§

SamplingInfo
Sampling and filtering metadata. Present only when events were dropped or filtered at the source.
SegmentInfo
Per-segment metadata.
TraceHeader
Session metadata written at the start of a .moqtrace file, and at the start of every segment in a segmented one.

Enums§

DetailLevel
Detail level — declares what was recorded.
DropPolicy
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 key belongs in a map’s unrecognised-key store rather than in one of the map’s own fields, given that map’s writes_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 pairs the 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: normalised into the encoding SPEC.md requires, and with no key written twice (deduplicated).