30 lines
836 B
Rust
30 lines
836 B
Rust
// file: crates/apps/game-reflex-poc-tauri/src/runtime.rs
|
|
// version: 2
|
|
|
|
/// Stable label for the current Tauri/WASM runtime combination.
|
|
pub(crate) fn runtime_label() -> &'static str {
|
|
return "Desktop / TauriWebView / Wasm / KeyboardMouse";
|
|
}
|
|
|
|
/// Records that the frontend completed its startup sequence.
|
|
pub(crate) fn record_frontend_ready() {
|
|
tracing::info!(
|
|
target: "games::tauri::reflex",
|
|
action = "frontend_ready",
|
|
runtime = crate::runtime_label(),
|
|
"Reflex Tauri frontend ready"
|
|
);
|
|
return;
|
|
}
|
|
|
|
/// Records one accepted native window close request.
|
|
pub(crate) fn record_window_close(source: &str) {
|
|
tracing::info!(
|
|
target: "games::tauri::reflex",
|
|
action = "window_close",
|
|
source = source,
|
|
"Reflex Tauri window close accepted"
|
|
);
|
|
return;
|
|
}
|