Skip to main content

Mountain/IPC/WindServiceHandlers/Update/
GetInitialState.rs

1#![allow(unused_variables, dead_code, unused_imports)]
2
3//! Wire method: `update:_getInitialState`.
4//! Returns `{ type: "idle" }` so the workbench renders "up to date".
5
6use serde_json::{Value, json};
7
8pub async fn Fn() -> Result<Value, String> {
9	crate::dev_log!("update", "update:_getInitialState");
10
11	Ok(json!({ "type": "idle", "updateType": 0 }))
12}