DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/IPC/WindServiceHandlers/Update/
UpdateService.rs1#![allow(non_snake_case, unused_variables, dead_code, unused_imports)]
2
3use serde_json::{Value, json};
10
11pub async fn UpdateGetInitialState() -> Result<Value, String> {
12 crate::dev_log!("update", "update:_getInitialState");
13 Ok(json!({ "type": "idle", "updateType": 0 }))
14}
15
16pub async fn UpdateIsLatestVersion() -> Result<Value, String> {
17 crate::dev_log!("update", "update:isLatestVersion");
18 Ok(json!(true))
19}
20
21pub async fn UpdateCheckForUpdates() -> Result<Value, String> {
22 crate::dev_log!("update", "update:checkForUpdates");
23 Ok(Value::Null)
24}
25
26pub async fn UpdateDownloadUpdate() -> Result<Value, String> {
27 crate::dev_log!("update", "update:downloadUpdate");
28 Ok(Value::Null)
29}
30
31pub async fn UpdateApplyUpdate() -> Result<Value, String> {
32 crate::dev_log!("update", "update:applyUpdate");
33 Ok(Value::Null)
34}
35
36pub async fn UpdateQuitAndInstall() -> Result<Value, String> {
37 crate::dev_log!("update", "update:quitAndInstall");
38 Ok(Value::Null)
39}