Skip to main content

force_status

Function force_status 

Source
pub fn force_status(forced_until: &str) -> ForceStatus
Expand description

Classify a stored forced_until — see ForceStatus.

ForceStatus::Unreadable is the fail-SAFE direction, and both callers depend on it: “can’t tell” means NOT in force, never expect()-worthy. Not sending an explicit header IS the fallback, so ingest never starts failing because a force was forgotten or a timestamp got mangled.

A parsed instant is normalised to UTC so both arms can carry one type. project switch only ever writes Utc::now() + …, so in practice this changes nothing that is rendered back to the operator.