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§
Source§impl Clone for FileOptions
impl Clone for FileOptions
Source§fn clone(&self) -> FileOptions
fn clone(&self) -> FileOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FileOptions
impl Debug for FileOptions
Source§impl PartialEq for FileOptions
impl PartialEq for FileOptions
impl Copy for FileOptions
impl Eq for FileOptions
impl StructuralPartialEq for FileOptions
Auto Trait Implementations§
impl Freeze for FileOptions
impl RefUnwindSafe for FileOptions
impl Send for FileOptions
impl Sync for FileOptions
impl Unpin for FileOptions
impl UnwindSafe for FileOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more