pub struct FragmentData { /* 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 FragmentData
impl FragmentData
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§
Source§impl Clone for FragmentData
impl Clone for FragmentData
Source§fn clone(&self) -> FragmentData
fn clone(&self) -> FragmentData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FragmentData
impl Debug for FragmentData
impl Copy for FragmentData
Auto Trait Implementations§
impl Freeze for FragmentData
impl RefUnwindSafe for FragmentData
impl Send for FragmentData
impl Sync for FragmentData
impl Unpin for FragmentData
impl UnsafeUnpin for FragmentData
impl UnwindSafe for FragmentData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more