net_wire/ipv6/
next_header.rs1#[repr(transparent)]
3#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4pub struct Ipv6NextHeader(u8);
5
6impl Ipv6NextHeader {
7 pub const HOPOPT: Self = Self(0);
9 pub const ROUTING: Self = Self(43);
11 pub const FRAGMENT: Self = Self(44);
13 pub const ESP: Self = Self(50);
15 pub const AUTHENTICATION: Self = Self(51);
17 pub const DESTINATION_OPTIONS: Self = Self(60);
19 pub const TCP: Self = Self(6);
21 pub const UDP: Self = Self(17);
23 pub const ICMPV6: Self = Self(58);
25 pub const NO_NEXT_HEADER: Self = Self(59);
27
28 #[inline]
30 pub const fn new(raw: u8) -> Self {
31 Self(raw)
32 }
33
34 #[inline]
36 pub const fn raw(self) -> u8 {
37 self.0
38 }
39}