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