pub enum Stage {
Onboarding(Onboarding),
Underway,
}Expand description
Whether this run has ever gotten in.
Once Link::Up has happened at least once, Onboard::stage stops
reporting the two Onboarding states that resolve on their own –
Onboarding::Connecting and Onboarding::GaveUp – and leaves an
ordinary dropped link to Link (and a caller’s own “data is going
stale”) to show instead, so the two are never reconciled on screen at
once. The states that need a human to act again – Onboarding::Asking,
Onboarding::Denied, Onboarding::AlreadyPending,
Onboarding::Reauthorizing – are reported regardless of whether
this is the first time or the fifth: needing a fresh approval reads
the same either way, and a caller that only ever asks for approval
once would leave a mariner staring at “reconnecting” with nothing
telling them Signal K is waiting on a click.
Variants§
Onboarding(Onboarding)
Nothing has arrived yet, or is expected any moment: what to say instead, when there is nothing else worth showing.
Underway
Past all of that. Link owns the story from here.