mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 00:35:38 +08:00
20 lines
559 B
Rust
20 lines
559 B
Rust
use super::emit::ClashInfoPayload;
|
|
use crate::{config::VergeConfig, utils::sysopt::SysProxyConfig};
|
|
use std::sync::{Arc, Mutex};
|
|
use tauri::api::process::CommandChild;
|
|
|
|
#[derive(Default)]
|
|
pub struct ClashInfoState(pub Arc<Mutex<ClashInfoPayload>>);
|
|
|
|
#[derive(Default)]
|
|
pub struct ProfileLock(pub Mutex<bool>);
|
|
|
|
#[derive(Default)]
|
|
pub struct VergeConfLock(pub Arc<Mutex<VergeConfig>>);
|
|
|
|
#[derive(Default)]
|
|
pub struct SomthingState(pub Arc<Mutex<Option<SysProxyConfig>>>);
|
|
|
|
#[derive(Default)]
|
|
pub struct ClashSidecarState(pub Arc<Mutex<Option<CommandChild>>>);
|