Struct rpcap::read::PcapReader [−][src]
pub struct PcapReader<R> { /* fields omitted */ }
Expand description
The PcapReader
struct allows reading packets from a packet capture.
Implementations
Create a new PcapReader
that reads the packet capture data from the specified Reader
.
This function allows iterating over the packets in the packet capture, in a similar fashion to normal iterators. (The exact interface is unfortunately incompatible.)
Returns Ok(None)
on EOF, or a packet as long as one is available.
Destroys this PcapReader
and returns access to the underlying Read
.