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]

[src]

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

[src]

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.

[src]

Write a package to the capture file.

[src]

Flushes the underlying writer.

[src]

Destroys this PcapWriter and returns access to the underlying Write.

[src]

The options used by this PcapWriter.