Skip to main contentModule patch
Source - ErrorMessage
- Error response from the server. The optional
seq ties the error
back to the client event that caused it; None means a session-level error. - HeartbeatAck
- Server acknowledgement of a client heartbeat, echoing the sequence
number so the client can measure round-trip latency.
- PatchMessage
- A batch of ordered patch operations the client must apply
to reconcile its DOM with server state.
- RedirectMessage
- A server-initiated redirect, optionally accompanied by a flash message
to display after navigation completes.
- ServerMessage
- Top-level envelope for all server-to-client messages.
Mirrors
crate::event::ClientMessage with a version field
for forward-compatibility negotiation.
- FlashLevel
- Severity levels for flash notifications, mapping to standard
visual treatments in the client runtime.
- PatchOp
- Individual DOM patch operations. Each variant maps to a single,
atomic DOM mutation the client runtime executes.
- ServerPayload
- Discriminated union of all server-to-client payload types.