enum HwndOpenedOutcome {
Linked,
Repaired(u64),
NoMatchingLabel,
}Expand description
Internal — the four branches of apply_hwnd_opened against a
known label_hint. Lifted into its own enum so the function
can drop the &mut WindowMirror borrow before calling
state.bump_version() on the drift-emitting path (rustc E0499).
Variants§
Linked
Existing mirror was waiting for an HWND; linked successfully.
Repaired(u64)
Existing mirror was already linked to a DIFFERENT HWND. The
explicit on_after_created path is authoritative — REPAIR by
overwriting the stale link, and emit HwndWithoutBrowser
drift to surface the prior incorrect link for diagnostics.
Carry the prior HWND for the drift message.
(PR #664: replaces the no-repair behavior that caused the
panel grows but no window appears user symptom under
burst creates.)
NoMatchingLabel
No mirror exists for that label — fall through to pending stash (caller responsibility).