Skip to main content

Module event

Module event 

Source
Expand description

Trace event types.

Structsยง

ByteStr ๐Ÿ”’
Wrapper that serializes as a CBOR byte string (major type 2). Without this wrapper, serializing &[u8] via generic Serialize produces a CBOR array of u8.
TraceEvent
A single event in a .moqtrace file.

Enumsยง

Direction
Direction of a message or stream relative to the recording endpoint.
EventData
Event-specific payload, discriminated by type.
StreamType
Data stream type.

Constantsยง

EVENT_ANNOTATION ๐Ÿ”’
EVENT_CONTROL_MESSAGE ๐Ÿ”’
Event type discriminant. Matches FORMAT.md "e" values.
EVENT_ERROR ๐Ÿ”’
EVENT_OBJECT_HEADER ๐Ÿ”’
EVENT_OBJECT_PAYLOAD ๐Ÿ”’
EVENT_STATE_CHANGE ๐Ÿ”’
EVENT_STREAM_CLOSED ๐Ÿ”’
EVENT_STREAM_OPENED ๐Ÿ”’

Functionsยง

get_bytes ๐Ÿ”’
Helper to extract byte string from a CBOR map by key.
get_int ๐Ÿ”’
Helper to extract an i64 from a CBOR map by key.
get_text ๐Ÿ”’
Helper to extract a text string from a CBOR map by key.
get_uint ๐Ÿ”’
Helper to extract a u64 from a CBOR map by key.
get_value ๐Ÿ”’
Helper to extract a value from a CBOR map by key.
require_direction ๐Ÿ”’
require_int ๐Ÿ”’
require_text ๐Ÿ”’
require_uint ๐Ÿ”’
require_value ๐Ÿ”’