pub struct FragmentHeader {
pub fragment_id: u16,
pub sequence: u16,
pub total: u16,
pub stream_id: u32,
}Expand description
Parsed representation of the 10-byte fragment metadata header.
Fields§
§fragment_id: u16Opaque identifier for the fragmented message within a stream. Parsed from the wire; available for callers but not used by the kernel.
sequence: u16Zero-based position of this fragment in the sequence.
total: u16Total number of fragments that make up the original message.
stream_id: u32Stream identifier used as the reassembly buffer key.
Trait Implementations§
Source§impl Clone for FragmentHeader
impl Clone for FragmentHeader
Source§fn clone(&self) -> FragmentHeader
fn clone(&self) -> FragmentHeader
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 moreimpl Copy for FragmentHeader
Auto Trait Implementations§
impl Freeze for FragmentHeader
impl RefUnwindSafe for FragmentHeader
impl Send for FragmentHeader
impl Sync for FragmentHeader
impl Unpin for FragmentHeader
impl UnsafeUnpin for FragmentHeader
impl UnwindSafe for FragmentHeader
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