pub struct Handle { /* private fields */ }
Implementations§
Source§impl Handle
impl Handle
pub fn datalink(&self) -> i32
pub fn loop_<F: Fn(PacketHeader, Vec<u8>)>(&self, count: i32, f: F)
Sourcepub fn compile(&self, filter: &str, optimize: bool, netmask: u32) -> bpf_program
pub fn compile(&self, filter: &str, optimize: bool, netmask: u32) -> bpf_program
int pcap_compile(pcap_t *p, struct bpf_program *fp, char *str, int optimize, bpf_u_int32 netmask)
pub fn setfilter(&self, filter: &mut bpf_program)
pub fn activate(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Handle
impl RefUnwindSafe for Handle
impl !Send for Handle
impl !Sync for Handle
impl Unpin for Handle
impl UnwindSafe for Handle
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