1bitflags! { 2 /// Set of protocols. 3 #[derive(Debug, Clone, Copy, PartialEq)] 4 pub struct ProtocolFlags: u8 { 5 const TCP = 0b00000001; 6 const UDP = 0b00000010; 7 } 8}