pub struct ExtensionHeaders<'a> {
pub hop_by_hop: Option<OptionsHeaderReader<'a>>,
pub routing: Option<RoutingHeaderReader<'a>>,
pub fragment: Option<FragmentHeaderReader<'a>>,
pub auth_header: Option<AuthenticationHeaderReader<'a>>,
pub destination_1st: Option<OptionsHeaderReader<'a>>,
pub destination_2nd: Option<OptionsHeaderReader<'a>>,
pub total_headers_len: usize,
pub final_next_header: u8,
}
Expand description
Contains all present extension headers in an IPv6 packet.
Each extension header is optional and should appear only once.
Except the Destination Options header, which may occur twice.
Fields§
§hop_by_hop: Option<OptionsHeaderReader<'a>>
§routing: Option<RoutingHeaderReader<'a>>
§fragment: Option<FragmentHeaderReader<'a>>
§auth_header: Option<AuthenticationHeaderReader<'a>>
§destination_1st: Option<OptionsHeaderReader<'a>>
§destination_2nd: Option<OptionsHeaderReader<'a>>
§total_headers_len: usize
§final_next_header: u8
Implementations§
Source§impl<'a> ExtensionHeaders<'a>
impl<'a> ExtensionHeaders<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ExtensionHeaders<'a>
impl<'a> RefUnwindSafe for ExtensionHeaders<'a>
impl<'a> Send for ExtensionHeaders<'a>
impl<'a> Sync for ExtensionHeaders<'a>
impl<'a> Unpin for ExtensionHeaders<'a>
impl<'a> UnwindSafe for ExtensionHeaders<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more