Query boats layout
This commit is contained in:
@ -26,6 +26,7 @@ pub enum StartMode {
|
||||
PlayRandom,
|
||||
}
|
||||
|
||||
/// The messages a client could send to the server
|
||||
#[derive(serde::Deserialize, serde::Serialize, Debug)]
|
||||
#[serde(tag = "type")]
|
||||
pub enum ClientMessage {
|
||||
@ -37,6 +38,10 @@ pub enum ClientMessage {
|
||||
RejectRematch,
|
||||
}
|
||||
|
||||
/// The list of messages that can be sent from the server to the client
|
||||
///
|
||||
/// Messages types are ordered in the enum in a "kind of" chronogical order: most messages should be
|
||||
/// sent only if the messages type below it have not already been sent.
|
||||
#[derive(Message)]
|
||||
#[rtype(result = "()")]
|
||||
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone)]
|
||||
|
Reference in New Issue
Block a user