pub struct Config { /* private fields */ }
Implementations§
Source§impl Config
impl Config
pub fn max_packets_read(&self) -> usize
pub fn with_max_packets_read(&mut self, amt: usize) -> &mut Self
pub fn snaplen(&self) -> u32
pub fn with_snaplen(&mut self, amt: u32) -> &mut Self
pub fn buffer_size(&self) -> u32
pub fn with_buffer_size(&mut self, amt: u32) -> &mut Self
pub fn bpf(&self) -> &Option<String>
pub fn with_bpf(&mut self, amt: String) -> &mut Self
pub fn buffer_for(&self) -> &Duration
pub fn with_buffer_for(&mut self, amt: Duration) -> &mut Self
pub fn blocking(&self) -> bool
pub fn with_blocking(&mut self, blocking: bool) -> &mut Self
pub fn new( max_packets_read: usize, snaplen: u32, buffer_size: u32, bpf: Option<String>, buffer_for: Duration, blocking: bool, ) -> Config
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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