Mountain/IPC/Common/MessageType/MessagePriority.rs
1
2//! Priority ladder used by `IPCMessage::Struct` and `IPCCommand::Struct`.
3//! Ordered so callers can compare with `<` / `>`. `Default` is `Normal`.
4
5use serde::{Deserialize, Serialize};
6
7#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)]
8pub enum Enum {
9 Low = 0,
10
11 Normal = 1,
12
13 High = 2,
14
15 Critical = 3,
16}
17
18impl Default for Enum {
19 fn default() -> Self { Self::Normal }
20}