Skip to main content

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	Normal = 1,
12	High = 2,
13	Critical = 3,
14}
15
16impl Default for Enum {
17	fn default() -> Self { Self::Normal }
18}