Add fmt options and move handlers
This commit is contained in:
parent
50bcac2a1b
commit
fdca5b7277
28 changed files with 83 additions and 68 deletions
|
|
@ -1,12 +1,18 @@
|
|||
mod controller_uid;
|
||||
mod schedule_uid;
|
||||
|
||||
use crate::models::Controller;
|
||||
|
||||
pub use controller_uid::ControllerUid;
|
||||
pub use schedule_uid::ScheduleUid;
|
||||
|
||||
use std::collections::HashMap;
|
||||
use std::sync::{Arc, Mutex};
|
||||
|
||||
pub use controller_uid::ControllerUid;
|
||||
pub use schedule_uid::ScheduleUid;
|
||||
use serde_derive::{Deserialize, Serialize};
|
||||
|
||||
use crate::models::Controller;
|
||||
|
||||
pub type ConnectedControllersType = Arc<Mutex<HashMap<ControllerUid, Controller>>>;
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
pub enum ControllerWsAction {
|
||||
Register(Controller),
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue