Struct rpcap::FileOptions [−][src]
pub struct FileOptions {
pub snaplen: usize,
pub linktype: u32,
pub high_res_timestamps: bool,
pub non_native_byte_order: bool,
}
Expand description
The options for packet capture files.
Fields
snaplen: usize
The maximum size of a packet in the file.
Packets larger than this usually get truncated to this size by the recording application.
linktype: u32
The type of packets in the file. See Linktype
for known values.
high_res_timestamps: bool
Determines the timestamp format of packets the file.
non_native_byte_order: bool
Determines the byte order for the file headers.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for FileOptions
impl Send for FileOptions
impl Sync for FileOptions
impl Unpin for FileOptions
impl UnwindSafe for FileOptions
Blanket Implementations
Mutably borrows from an owned value. Read more