mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-23 20:22:12 +08:00
10 lines
250 B
Rust
10 lines
250 B
Rust
use std::sync::Arc;
|
|
|
|
use crate::core::{CoreManager, manager::RunningMode};
|
|
|
|
/// 获取当前内核运行模式
|
|
#[tauri::command]
|
|
pub async fn get_running_mode() -> Result<Arc<RunningMode>, String> {
|
|
Ok(CoreManager::global().get_running_mode())
|
|
}
|