1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] #[repr(u8)] pub enum RakPriority { Immediate = 0, High = 1, Normal = 2, Low = 3, } impl RakPriority { #[inline] pub const fn as_index(self) -> usize { self as usize } }