paper_utils/command.rs
1/*
2 * Copyright (c) Kia Shakiba
3 *
4 * This source code is licensed under the GNU AGPLv3 license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8pub struct CommandByte;
9
10impl CommandByte {
11 pub const PING: u8 = 0;
12 pub const VERSION: u8 = 1;
13
14 pub const AUTH: u8 = 2;
15
16 pub const GET: u8 = 3;
17 pub const SET: u8 = 4;
18 pub const DEL: u8 = 5;
19
20 pub const HAS: u8 = 6;
21 pub const PEEK: u8 = 7;
22 pub const TTL: u8 = 8;
23 pub const SIZE: u8 = 9;
24
25 pub const WIPE: u8 = 10;
26
27 pub const RESIZE: u8 = 11;
28 pub const POLICY: u8 = 12;
29
30 pub const STATUS: u8 = 13;
31}