pub fn state_of(
ask: &Ask,
outcomes: &[&Outcome],
app: &str,
tr: &Translator,
phone_shared: Option<i64>,
cancel: bool,
time_of: &dyn Fn(i64) -> String,
) -> StateExpand description
A request’s state in words, from its phone’s outcomes (outcomes, its
key’s): the furthest it went, the latest of those. app: its app’s name
as the phone shows it; phone_shared: when the phone last shared (ms),
for “Waiting for your phone”; cancel: this computer took it back
(Take back), said at once, and said too late when the phone had taken it
already; time_of: a moment (ms) as the computer says the time.