pub struct FragmentData<'a> { /* private fields */ }
Expand description
Fragment Extension header data.
As per RFC 8200, section 4.5 the fragment header is structured as: +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Next Header | Reserved | Fragment Offset |Res|M| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Identification | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
where Fragment Offset is 13 bits, Res is a reserved 2 bits and M is a 1 bit flag. Identification is a 32bit value.
Implementations§
Source§impl<'a> FragmentData<'a>
impl<'a> FragmentData<'a>
Sourcepub fn fragment_offset(&self) -> FragmentOffset
pub fn fragment_offset(&self) -> FragmentOffset
Returns the fragment offset.
Sourcepub fn identification(&self) -> u32
pub fn identification(&self) -> u32
Returns the identification value.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for FragmentData<'a>
impl<'a> RefUnwindSafe for FragmentData<'a>
impl<'a> Send for FragmentData<'a>
impl<'a> Sync for FragmentData<'a>
impl<'a> Unpin for FragmentData<'a>
impl<'a> UnwindSafe for FragmentData<'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