Skip to main content

Mountain/IPC/Common/MessageType/
MessagePriority.rs

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