portable service
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
eb60ab0b79
commit
8e1545b432
46 changed files with 1217 additions and 72 deletions
14
src/ipc.rs
14
src/ipc.rs
|
|
@ -130,6 +130,19 @@ pub enum DataControl {
|
|||
},
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
#[serde(tag = "t", content = "c")]
|
||||
pub enum DataPortableService {
|
||||
Ping,
|
||||
Pong,
|
||||
ConnCount(Option<usize>),
|
||||
Mouse(Vec<u8>),
|
||||
Key(Vec<u8>),
|
||||
RequestStart,
|
||||
WillClose,
|
||||
CmShowElevation(bool),
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
#[serde(tag = "t", content = "c")]
|
||||
pub enum Data {
|
||||
|
|
@ -187,6 +200,7 @@ pub enum Data {
|
|||
Language(String),
|
||||
Empty,
|
||||
Disconnected,
|
||||
DataPortableService(DataPortableService),
|
||||
}
|
||||
|
||||
#[tokio::main(flavor = "current_thread")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue