DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/IPC/WindServiceAdapters/
WindEnvironmentService.rs1#![allow(non_snake_case)]
2
3pub struct Struct {}
8
9impl Struct {
10 pub fn new() -> Self { Self {} }
11
12 pub async fn get_app_root(&self) -> Result<String, String> { std::env::var("APP_ROOT").map_err(|e| e.to_string()) }
13
14 pub async fn get_user_data_path(&self) -> Result<String, String> {
15 std::env::var("USER_DATA_PATH").map_err(|e| e.to_string())
16 }
17}