unmp/consts/
mod.rs

1//! 常量表
2use fixed_queue::Vec;
3
4/// 数据包长度
5pub const PACKET_LEN: usize = 240;
6/// 数据包
7pub type VecPacket = Vec<u8, PACKET_LEN>;
8/// 数据长度
9pub const DATA_LEN: usize = 180;
10/// 数据
11pub type VecData = Vec<u8, DATA_LEN>;
12
13cfg_if::cfg_if! {
14    if #[cfg(feature = "role_center")] {
15        #[path = "role_center.rs"]
16        mod role;
17    } else if #[cfg(feature = "role_router")] {
18        #[path = "role_router.rs"]
19        mod role;
20    } else {
21        #[path = "role_client.rs"]
22        mod role;
23    }
24}
25
26pub use role::*;