pub struct Fragment {
pub packet: Vec<u8>,
pub offset: u32,
pub last: bool,
}Expand description
A single fragment ready for transmission.
Fields§
§packet: Vec<u8>The complete fragment packet (header + payload).
offset: u32Fragment offset in bytes.
last: boolWhether this is the last fragment.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Fragment
impl RefUnwindSafe for Fragment
impl Send for Fragment
impl Sync for Fragment
impl Unpin for Fragment
impl UnsafeUnpin for Fragment
impl UnwindSafe for Fragment
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