Struct rpcap::write::PcapWriter [] [src]

pub struct PcapWriter<W: Write> { /* fields omitted */ }

The PcapReader struct allows reading packets from a packet capture.

Methods

impl<W: Write> PcapWriter<W>
[src]

Create a new PcapWriter that writes the packet capture data to the specified Write.

Create a new PcapWriter that appends the packets to an existing Write. If the WriteOptions specified here are different than those used to create the file, the resulting file will be invalid.

Write a package to the capture file.

Flushes the underlying writer.

Destroys this PcapWriter and returns access to the underlying Write.

The options used by this PcapWriter.