Basic synchronization of edited objects

This commit is contained in:
Lucien Greathouse 2018-05-26 02:06:10 -07:00
parent 00b903e97c
commit 8729de1312
6 changed files with 148 additions and 34 deletions

View file

@ -4,8 +4,14 @@ use std::sync::{mpsc, Arc, RwLock, Mutex};
use id::{Id, get_id};
#[derive(Debug, Clone, Serialize)]
#[serde(tag = "type")]
pub enum Message {
Something,
InstanceChanged {
id: Id,
},
Error {
message: String
},
}
#[derive(Clone)]