#[derive(Debug, Copy, Clone, PartialOrd, Ord, PartialEq, Eq, Hash)]
#[derive(Deserialize, Serialize)]
#[repr(u8)]
pub enum InternetProtocolVersion4OptionClass
{
Control = 0b00,
ReservedForFutureUse1 = 0b01,
DebuggingAndMeasurement = 0b10,
ReservedForFutureUse2 = 0b11,
}
impl Into<u8> for InternetProtocolVersion4OptionClass
{
#[inline(always)]
fn into(self) -> u8
{
self as u8
}
}
impl InternetProtocolVersion4OptionClass
{
#[inline(always)]
pub fn is_reserved_for_future_use(self) -> bool
{
(self as u8) & 0b01 != 0
}
}