pub fn open_with_payload(
path: &Path,
) -> Result<Box<dyn Iterator<Item = Result<PacketData, PcapError>>>, PcapError>Expand description
Open a file and return an iterator that yields both PacketInfo and the
raw captured bytes for each packet.
Useful for the export pipeline where the payload must be written out.
Format auto-detection works the same as open.