Skip to main content

status

Function status 

Source
pub fn status(status: &RunStatus, now: OffsetDateTime) -> Value
Expand description

The status object for a derived status. See the module docs for the shapes.

now is the server’s clock, read once by the caller and passed in rather than read here, so this stays a pure fold: a sleeping status compares it against the recorded wake_at to decide whether overdue and overdue_seconds belong in the object. Every other arm ignores it.