pub struct FragmentInfo {
pub offset: u32,
pub length: usize,
pub last: bool,
pub data: Vec<u8>,
}Expand description
Information about a fragment.
Fields§
§offset: u32Fragment offset in bytes.
length: usizeFragment payload length.
last: boolWhether this is the last fragment.
data: Vec<u8>The fragment data (header + payload).
Implementations§
Source§impl FragmentInfo
impl FragmentInfo
Sourcepub fn end_offset(&self) -> u32
pub fn end_offset(&self) -> u32
Get the end offset (offset + length).
Trait Implementations§
Source§impl Clone for FragmentInfo
impl Clone for FragmentInfo
Source§fn clone(&self) -> FragmentInfo
fn clone(&self) -> FragmentInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FragmentInfo
impl RefUnwindSafe for FragmentInfo
impl Send for FragmentInfo
impl Sync for FragmentInfo
impl Unpin for FragmentInfo
impl UnsafeUnpin for FragmentInfo
impl UnwindSafe for FragmentInfo
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