pub struct PacketPosition {
pub byte_offset: u64,
pub frame_number: u64,
}Expand description
Position within a packet source (for seeking/checkpointing).
Fields§
§byte_offset: u64Byte offset in the underlying source
frame_number: u64Frame number at this position (1-indexed, matching Wireshark)
Implementations§
Trait Implementations§
Source§impl Clone for PacketPosition
impl Clone for PacketPosition
Source§fn clone(&self) -> PacketPosition
fn clone(&self) -> PacketPosition
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 moreSource§impl Debug for PacketPosition
impl Debug for PacketPosition
Source§impl Default for PacketPosition
impl Default for PacketPosition
Source§fn default() -> PacketPosition
fn default() -> PacketPosition
Returns the “default value” for a type. Read more
Source§impl PartialEq for PacketPosition
impl PartialEq for PacketPosition
impl Eq for PacketPosition
impl StructuralPartialEq for PacketPosition
Auto Trait Implementations§
impl Freeze for PacketPosition
impl RefUnwindSafe for PacketPosition
impl Send for PacketPosition
impl Sync for PacketPosition
impl Unpin for PacketPosition
impl UnwindSafe for PacketPosition
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