pub struct PacketSourceMetadata {
pub link_type: u32,
pub snaplen: u32,
pub size_bytes: Option<u64>,
pub packet_count: Option<u64>,
pub seekable: bool,
}Expand description
Metadata about a packet source.
Fields§
§link_type: u32Link-layer type (e.g., 1 = Ethernet)
snaplen: u32Snapshot length
size_bytes: Option<u64>Total size in bytes (if known)
packet_count: Option<u64>Total packet count (if known, e.g., from index)
seekable: boolWhether the source supports seeking
Trait Implementations§
Source§impl Clone for PacketSourceMetadata
impl Clone for PacketSourceMetadata
Source§fn clone(&self) -> PacketSourceMetadata
fn clone(&self) -> PacketSourceMetadata
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 PacketSourceMetadata
impl RefUnwindSafe for PacketSourceMetadata
impl Send for PacketSourceMetadata
impl Sync for PacketSourceMetadata
impl Unpin for PacketSourceMetadata
impl UnwindSafe for PacketSourceMetadata
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