pub struct Ipv6PacketBuilderWithFragmentHeader<B> { /* private fields */ }
Expand description
An IPv6 packet builder that includes the fragmentation header.
Ipv6PacketBuilderWithFragmentHeader
wraps another compatible packet
builder to attach the fragment header on it.
See RFC 8200 Section 2.5 for the fragment header format.
Implementations§
Source§impl<B: Ipv6HeaderBefore<Self>> Ipv6PacketBuilderWithFragmentHeader<B>
impl<B: Ipv6HeaderBefore<Self>> Ipv6PacketBuilderWithFragmentHeader<B>
Sourcepub fn new(
header_builder: B,
fragment_offset: FragmentOffset,
more_fragments: bool,
identification: u32,
) -> Self
pub fn new( header_builder: B, fragment_offset: FragmentOffset, more_fragments: bool, identification: u32, ) -> Self
Creates a new Ipv6PacketBuilderWithFragmentHeader
.
Trait Implementations§
Source§impl<B: Debug> Debug for Ipv6PacketBuilderWithFragmentHeader<B>
impl<B: Debug> Debug for Ipv6PacketBuilderWithFragmentHeader<B>
Source§impl<B: Ipv6HeaderBuilder> PacketBuilder for Ipv6PacketBuilderWithFragmentHeader<B>
impl<B: Ipv6HeaderBuilder> PacketBuilder for Ipv6PacketBuilderWithFragmentHeader<B>
Source§impl<B: PartialEq> PartialEq for Ipv6PacketBuilderWithFragmentHeader<B>
impl<B: PartialEq> PartialEq for Ipv6PacketBuilderWithFragmentHeader<B>
Source§fn eq(&self, other: &Ipv6PacketBuilderWithFragmentHeader<B>) -> bool
fn eq(&self, other: &Ipv6PacketBuilderWithFragmentHeader<B>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<B: Eq> Eq for Ipv6PacketBuilderWithFragmentHeader<B>
impl<B> StructuralPartialEq for Ipv6PacketBuilderWithFragmentHeader<B>
Auto Trait Implementations§
impl<B> Freeze for Ipv6PacketBuilderWithFragmentHeader<B>where
B: Freeze,
impl<B> RefUnwindSafe for Ipv6PacketBuilderWithFragmentHeader<B>where
B: RefUnwindSafe,
impl<B> Send for Ipv6PacketBuilderWithFragmentHeader<B>where
B: Send,
impl<B> Sync for Ipv6PacketBuilderWithFragmentHeader<B>where
B: Sync,
impl<B> Unpin for Ipv6PacketBuilderWithFragmentHeader<B>where
B: Unpin,
impl<B> UnwindSafe for Ipv6PacketBuilderWithFragmentHeader<B>where
B: UnwindSafe,
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