Skip to main content

DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/IPC/WindServiceHandlers/UI/
LifecycleGetPhase.rs

1//! Wire method: `lifecycle:getPhase`.
2
3use std::sync::Arc;
4
5use serde_json::{Value, json};
6
7use crate::RunTime::ApplicationRunTime::ApplicationRunTime;
8
9pub async fn Fn(RunTime:Arc<ApplicationRunTime>) -> Result<Value, String> {
10	let Phase = RunTime.Environment.ApplicationState.Feature.Lifecycle.GetPhase();
11
12	Ok(json!(Phase))
13}