FIXING DUE TO SOMEONE'S CHOICE OF EDITOR / OPERATING SYSTEM

This commit is contained in:
Dave Hrycyszyn
2020-04-23 11:41:44 +01:00
parent a77881d284
commit 44c48ef8ee
2 changed files with 7 additions and 17 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
pub(crate) mod connection_handler;
pub(crate) mod listener;
pub(crate) mod types;
pub(crate) mod message_receiver;
pub(crate) mod types;
pub(crate) use listener::Listener;
+6 -16
View File
@@ -19,24 +19,14 @@ use tokio_tungstenite::tungstenite::protocol::Message;
#[derive(Serialize, Deserialize, Debug)]
pub(crate) enum Request {
Send,
Register {
address: String
},
Authenticate {
token: String
},
Register { address: String },
Authenticate { token: String },
}
#[derive(Serialize, Deserialize, Debug)]
pub(crate) enum Response {
Send,
Register {
token: String
},
Authenticate {
status: bool
},
Error {
message: String
},
}
Register { token: String },
Authenticate { status: bool },
Error { message: String },
}