aboutsummaryrefslogtreecommitdiff
path: root/crates/whirl_server/src/cmd/constants.rs
blob: 1235a5293591a5174c6103b46497942a002d543c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (C) 2021-2021 The Whirlsplash Collective
// SPDX-License-Identifier: GPL-3.0-only

// Have to use this until https://github.com/rust-num/num-derive/issues/47 gets
// fixed.
#![allow(clippy::use_self)]

#[derive(num_derive::FromPrimitive)]
pub enum Command {
  LongLoc  = 1,
  State,
  Prop,
  ShortLoc,
  RoomChng,
  SessInit,
  SessExit,
  AppInit,
  PropReq  = 10,
  Disappr,
  ApprActr,
  RegObjId,
  Text,
  PropSet,
  PropUpd,
  Whisper,
  Teleport,
  RoomIdRq = 20,
  RoomId,
  Subscrib,
  Unsubscr,
  SubDist,
  Redirect,
  RedirId,
  FingReq,
  FingRep,
  BuddyListUpdate,
  BuddyListNotify,
  Channel,
}