plushie/renderer_exit
Structured renderer exit reason.
When the renderer process exits (crash, shutdown, heartbeat timeout,
or connection loss), the bridge constructs a RendererExit value
describing what happened. The runtime passes this to the app’s
on_renderer_exit callback so it can adjust the model before the
renderer restarts.
Types
Structured information about why the renderer process exited.
The details field carries the exit status code when available
(for Crash) and None otherwise.
pub type RendererExit {
RendererExit(
reason: RendererExitType,
message: String,
details: option.Option(Int),
)
}
Constructors
-
RendererExit( reason: RendererExitType, message: String, details: option.Option(Int), )Arguments
- reason
-
Category of exit reason.
- message
-
Human-readable description.
- details
-
Exit status code when available.
Category of renderer exit reason.
pub type RendererExitType {
Crash
ConnectionLost
Shutdown
HeartbeatTimeout
}
Constructors
-
CrashRenderer process exited with a non-zero status code.
-
ConnectionLostLost connection to the renderer process.
-
ShutdownRenderer shut down normally (exit status 0).
-
HeartbeatTimeoutRenderer became unresponsive (heartbeat timeout).