#[repr(transparent)]
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
pub struct Icmpv6Type(u8);
impl Icmpv6Type {
pub const DESTINATION_UNREACHABLE: Self = Self(1);
pub const PACKET_TOO_BIG: Self = Self(2);
pub const TIME_EXCEEDED: Self = Self(3);
pub const PARAMETER_PROBLEM: Self = Self(4);
pub const ECHO_REQUEST: Self = Self(128);
pub const ECHO_REPLY: Self = Self(129);
#[inline]
pub const fn new(raw: u8) -> Self {
Self(raw)
}
#[inline]
pub const fn raw(self) -> u8 {
self.0
}
}