#[non_exhaustive]pub struct SessionViewHealthChangedParams {
pub session_id: String,
pub health: SessionViewHealth,
pub none_reason: Option<HistoryNoneReason>,
}Expand description
session/viewHealthChanged params: the named session’s live view stream
became unavailable, and why, or it is back after the host re-loaded the
view, so the client re-reads and re-subscribes.
Best-effort: ordered after already-queued view frames and may be dropped
(for example when the connection is closing), so a client MUST NOT assume a
guaranteed push and still reads history.noneReason on its next
resume/read.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session_id: StringThe session whose live view health changed.
health: SessionViewHealthThe new view-health state: Unavailable, or Healthy once the host
re-loaded a failed view.
none_reason: Option<HistoryNoneReason>Why the view is unavailable — the SAME typed HistoryNoneReason
vocabulary the pull path stamps on history.noneReason, so a client
reuses one handler for push and pull. projectionUnavailable when the
view fails, then projectionRebuildFailed, which the pull path never
stamps: it rides only a session/viewHealthChanged notification, after
the host’s one re-load of a failed live view fails or right after a fork
child’s live fail-close; present only when health is Unavailable.
Open on the client side: an unknown reason decodes conservatively and
renders generically.