summaryrefslogtreecommitdiff
path: root/core/src/net/response/mod.rs
blob: 86e7db9e57a51b06f0fb7d045b27430884eb4ac9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2022-2024 Gabriel Bjørnager Jensen.

use crate::net::{ServerStatus, SessionToken};

use bzipper::{Deserialise, FixedString, Serialise};

#[derive(Debug, Deserialise, Serialise)]
pub enum Response {
	JoinAccepted { token: SessionToken },

	JoinDenied { reason: FixedString<0x20> },

	ServerStatus(ServerStatus),
}