add a define for the maximum CID

This commit is contained in:
bunnie 2021-04-14 03:20:30 +08:00
parent 75295485a7
commit 06f7f6ff7f

View file

@ -9,6 +9,8 @@ pub type MessageId = usize;
pub type PID = NonZeroU8;
pub type Connection = usize;
pub const MAX_CID: usize = 34;
#[derive(Debug, PartialEq, Eq, Ord, PartialOrd, Copy, Clone)]
pub struct MessageSender {
data: usize,