[−][src]Struct pcap_async::Config
Methods
impl Config
[src]
pub fn max_packets_read(&self) -> usize
[src]
pub fn with_max_packets_read(&mut self, amt: usize) -> &mut Self
[src]
pub fn snaplen(&self) -> u32
[src]
pub fn with_snaplen(&mut self, amt: u32) -> &mut Self
[src]
pub fn timeout(&self) -> &Duration
[src]
pub fn with_timeout(&mut self, amt: Duration) -> &mut Self
[src]
pub fn buffer_size(&self) -> u32
[src]
pub fn with_buffer_size(&mut self, amt: u32) -> &mut Self
[src]
pub fn bpf(&self) -> &Option<String>
[src]
pub fn with_bpf(&mut self, amt: String) -> &mut Self
[src]
pub fn retry_after(&self) -> &Duration
[src]
pub fn with_retry_after(&mut self, amt: Duration) -> &mut Self
[src]
pub fn new(
max_packets_read: usize,
snaplen: u32,
timeout: Duration,
buffer_size: u32,
bpf: Option<String>,
retry_after: Duration
) -> Config
[src]
max_packets_read: usize,
snaplen: u32,
timeout: Duration,
buffer_size: u32,
bpf: Option<String>,
retry_after: Duration
) -> Config
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,