FIXING DUE TO SOMEONE'S CHOICE OF EDITOR / OPERATING SYSTEM
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 },
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user