#[repr(C)]pub struct pcap_main_t {Show 13 fields
pub lock: clib_spinlock_t,
pub file_name: *mut c_char,
pub n_packets_to_capture: u32_,
pub packet_type: pcap_packet_type_t,
pub n_packets_captured: u32_,
pub flags: u32_,
pub file_descriptor: c_int,
pub n_pcap_data_written: u32_,
pub pcap_data: *mut u8_,
pub packets_read: *mut *mut u8_,
pub timestamps: *mut u64_,
pub min_packet_bytes: u32_,
pub max_packet_bytes: u32_,
}Fields§
§lock: clib_spinlock_t§file_name: *mut c_char§n_packets_to_capture: u32_§packet_type: pcap_packet_type_t§n_packets_captured: u32_§flags: u32_§file_descriptor: c_int§n_pcap_data_written: u32_§pcap_data: *mut u8_§packets_read: *mut *mut u8_§timestamps: *mut u64_§min_packet_bytes: u32_§max_packet_bytes: u32_Trait Implementations§
Source§impl Clone for pcap_main_t
impl Clone for pcap_main_t
Source§fn clone(&self) -> pcap_main_t
fn clone(&self) -> pcap_main_t
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 pcap_main_t
impl Debug for pcap_main_t
Source§impl Default for pcap_main_t
impl Default for pcap_main_t
impl Copy for pcap_main_t
Auto Trait Implementations§
impl Freeze for pcap_main_t
impl RefUnwindSafe for pcap_main_t
impl !Send for pcap_main_t
impl !Sync for pcap_main_t
impl Unpin for pcap_main_t
impl UnsafeUnpin for pcap_main_t
impl UnwindSafe for pcap_main_t
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