feat: lock profiles file and support more cmds

This commit is contained in:
GyDi
2021-12-14 22:56:57 +08:00
parent eb3daf7b3e
commit d75fb152c2
3 changed files with 78 additions and 6 deletions

View File

@@ -4,3 +4,6 @@ use super::emit::ClashInfoPayload;
#[derive(Default)]
pub struct ClashInfoState(pub Arc<Mutex<ClashInfoPayload>>);
#[derive(Default)]
pub struct ProfileLock(pub Mutex<bool>);