clash-verge/src-tauri/src/states.rs

12 lines
288 B
Rust
Raw Normal View History

2022-01-07 20:27:25 +03:00
use crate::core::{Clash, ProfilesConfig, Verge};
2022-01-07 18:29:20 +03:00
use std::sync::{Arc, Mutex};
#[derive(Default)]
pub struct ProfilesState(pub Arc<Mutex<ProfilesConfig>>);
#[derive(Default)]
pub struct ClashState(pub Arc<Mutex<Clash>>);
#[derive(Default)]
pub struct VergeState(pub Arc<Mutex<Verge>>);