Skip to main content

Module timestamp

Module timestamp 

Source
Expand description

Timestamps: the ordering and lifetime markers carried by every packet in the stream.

The i64 value space is partitioned into sentinel values around a legal data range:

 MIN      MIN+1       MIN+2      MIN+3  ...  MAX-3       MAX-2        MAX-1              MAX
 Unset  Unstarted   PreStream    Min          Max     PostStream  OneOverPostStream    Done
        └────────── never appears in a stream ─────────┘         └─── never in a stream ───┘
                                └─── legal data range ──┘
  • PreStream / PostStream — the special single-packet slots at the head and tail of a stream.
  • Done — the port is closed and no further data will arrive.
  • Unset — no value assigned (the default).

Structs§

Timestamp
A timestamp with sentinel semantics. The inner i64 is public so it converts directly to and from the C ABI representation.