packet_formats::ipv6

Struct Ipv6PacketBuilderWithFragmentHeader

Source
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>

Source

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>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<B: Ipv6HeaderBuilder> PacketBuilder for Ipv6PacketBuilderWithFragmentHeader<B>

Source§

fn constraints(&self) -> PacketConstraints

Gets the constraints for this PacketBuilder.
Source§

fn serialize( &self, target: &mut SerializeTarget<'_>, body: FragmentedBytesMut<'_, '_>, )

Serializes this packet into an existing buffer. Read more
Source§

impl<B: PartialEq> PartialEq for Ipv6PacketBuilderWithFragmentHeader<B>

Source§

fn eq(&self, other: &Ipv6PacketBuilderWithFragmentHeader<B>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<B: Eq> Eq for Ipv6PacketBuilderWithFragmentHeader<B>

Source§

impl<B> StructuralPartialEq for Ipv6PacketBuilderWithFragmentHeader<B>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.