Adding some IPC.

This commit is contained in:
Micheal Smith
2025-11-09 00:02:38 -06:00
parent 7f7981d6cd
commit 5d390ee9f3
11 changed files with 174 additions and 64 deletions

14
src/event.rs Normal file
View File

@@ -0,0 +1,14 @@
use serde::{Deserialize, Serialize};
#[derive(Deserialize, Serialize)]
pub struct Event {
message: String,
}
impl Event {
pub fn new(msg: impl Into<String>) -> Self {
Self {
message: msg.into(),
}
}
}