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

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

The PcapReader struct allows reading packets from a packet capture.

Implementations

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.

Warning: Only append to created using PcapWriter::new on the same machine. Files created on other architectures or from another tool/library might use different timestamp formats or endianness, leading to data corruption.

Create a new PcapWriter that appends the packets to an existing stream, which must support Read + Write + Seek so that the correct format options for the file can be determined.

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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.