#[non_exhaustive]pub struct SessionClosedParams {
pub session_id: String,
pub reason: SessionClosedReason,
pub view_cursor: Option<String>,
}Expand description
session/closed params: a loaded session was unloaded from this host,
broadcast to every initialized connection. After it, the session is
notLoaded; the log remains on disk and session/resume reloads it. A
crash emits nothing — only the orderly unload paths do (idle unload, host
shutdown and a released session/leave), and each writes the durable
SessionEnd record first.
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 unloaded session.
reason: SessionClosedReasonWhich orderly unload path fired.
view_cursor: Option<String>The final view head; a client that stores it can later session/resume {cursor} and receive exactly the (empty) suffix. An opaque view
cursor: clients relay it, never parse it.
Required-nullable: the producers always write the member and write
null when the final fold failed at unload — the host defines no cursor
values of its own and never invents one, and the subscriber still learns
the session closed.