pub struct Pcap { /* private fields */ }Implementations§
Source§impl Pcap
impl Pcap
pub fn open_live(device: &str) -> Result<Pcap, String>
pub fn data_link_type(&self) -> DataLinkType
pub fn next_packet(&self) -> Option<PcapPacket>
pub fn send_packet<T: Copy>(&self, data: &T) -> Result<(), &str>
Trait Implementations§
Auto Trait Implementations§
impl Forget for Pcap
impl Freeze for Pcap
impl Move for Pcap
impl RefUnwindSafe for Pcap
impl Unpin for Pcap
impl UnsafeUnpin for Pcap
impl UnwindSafe for Pcap
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