Skip to main content

Mountain/Binary/IPC/HealthCommand/
shared_process_service_health.rs

1#![allow(non_snake_case)]
2
3//! Tauri command - generic shared-process service health probe.
4//! Hard-coded readiness map for the three currently-shipped services
5//! (storage / update / search); unknown services return `false`.
6
7#[tauri::command]
8pub async fn shared_process_service_health(service:String) -> Result<bool, String> {
9	match service.as_str() {
10		"storage" | "update" | "search" => Ok(true),
11		_ => Ok(false),
12	}
13}