pub struct Packet {
pub header: PacketHeader,
pub data: Vec<u8>,
}Expand description
Represents a network packet with its header and raw data.
Fields§
§header: PacketHeaderPacket header information provided by pcap
data: Vec<u8>Raw packet data
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Packet
impl RefUnwindSafe for Packet
impl Send for Packet
impl Sync for Packet
impl Unpin for Packet
impl UnwindSafe for Packet
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