aboutsummaryrefslogtreecommitdiff
path: root/src/server/cmd/structure.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-04-26 13:30:51 -0700
committerFuwn <[email protected]>2021-04-26 13:30:51 -0700
commitf157d081d58bf6d85dabfe873c275efba71d29a5 (patch)
treeeefd84a9b073896fb80c1eff36b10f3873fe03ed /src/server/cmd/structure.rs
parentfix: Actually remove legacy server module (diff)
downloadwhirl-f157d081d58bf6d85dabfe873c275efba71d29a5.tar.xz
whirl-f157d081d58bf6d85dabfe873c275efba71d29a5.zip
fmt: Rename re_server module to server
Diffstat (limited to 'src/server/cmd/structure.rs')
-rw-r--r--src/server/cmd/structure.rs22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/server/cmd/structure.rs b/src/server/cmd/structure.rs
new file mode 100644
index 0000000..ea6bc0c
--- /dev/null
+++ b/src/server/cmd/structure.rs
@@ -0,0 +1,22 @@
+// Copyleft 2021-2021 Whirlsplash
+// SPDX-License-Identifier: GPL-3.0-only
+
+pub struct Command {
+ pub length: i32,
+ pub obj_id: i32,
+ pub id: i32,
+ pub body: Vec<u8>,
+}
+impl Command {
+ pub fn _new() -> Self { Command::default() }
+}
+impl Default for Command {
+ fn default() -> Self {
+ Command {
+ length: 0,
+ obj_id: 0,
+ id: 0,
+ body: vec![],
+ }
+ }
+}