Skip to main content

Module duration

Module duration 

Source
Expand description

Stable duration type for protocol wire format.

DurationMs serializes as a plain integer (milliseconds), not as serde’s internal {"secs": N, "nanos": N} format. This gives a stable, portable, human-readable wire format that will not break if serde changes its internal Duration representation.

Structs§

DurationMs
Duration in milliseconds with a stable JSON serialization format.