Skip to main content

generation_as_number

Function generation_as_number 

Source
fn generation_as_number(generation: &str) -> u128
Expand description

Parse a new_generation()-style nanosecond-timestamp string into a comparable number. An empty or corrupted value reads as 0 — the oldest possible timestamp — so it always loses a freshness comparison rather than erroring a read that would otherwise succeed.