Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // lib.rs
- // #[macro_use]
- // extern crate serde_derive;
- #![feature(rustc_private)]
- #[macro_use]
- extern crate log;
- extern crate env_logger;
- #[macro_use]
- extern crate serde_derive;
- extern crate serde;
- extern crate serde_json;
- extern crate futures;
- #[macro_use]
- extern crate tokio_core;
- extern crate mqtt3;
- extern crate mqttc;
- extern crate netopt;
- extern crate influent;
- pub mod apc;
- pub mod server;
- pub mod handler;
- // apc.rs
- #[allow(non_camel_case_types)]
- // use std::fmt;
- pub enum MessageType {
- MASTATUS,
- MACONFIG,
- NOT_APC_MESSAGE,
- }
- //#[derive(Debug)]
- #[derive(Serialize, Deserialize, Debug)]
- pub enum PowerLineStatus {
- Present,
- Missing,
- Unknown,
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement