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

12 lines
276 B
Rust
Raw Normal View History

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