1 2 3 4 5 6 7
bitflags! { /// Set of protocols. pub struct ProtocolFlags: u8 { const TCP = 0b00000001; const UDP = 0b00000010; } }