pub struct CaptureConfig {
pub interface: Option<String>,
pub snaplen: i32,
pub buffer_size: i32,
pub timeout_ms: i32,
pub filter: Option<String>,
}Expand description
Packet capture configuration
Fields§
§interface: Option<String>Network interface name (None for default)
snaplen: i32Snapshot length (bytes to capture per packet)
buffer_size: i32Buffer size for packet capture
timeout_ms: i32Read timeout in milliseconds
filter: Option<String>BPF filter string
Trait Implementations§
Source§impl Clone for CaptureConfig
impl Clone for CaptureConfig
Source§fn clone(&self) -> CaptureConfig
fn clone(&self) -> CaptureConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CaptureConfig
impl Debug for CaptureConfig
Auto Trait Implementations§
impl Freeze for CaptureConfig
impl RefUnwindSafe for CaptureConfig
impl Send for CaptureConfig
impl Sync for CaptureConfig
impl Unpin for CaptureConfig
impl UnsafeUnpin for CaptureConfig
impl UnwindSafe for CaptureConfig
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