Crate async_pcap

Crate async_pcap 

Source

Structs§

AsyncCapture
An asynchronous wrapper around a pcap::Capture.
AsyncCaptureHandle
Handle to control the asynchronous capture.
Capture
This is a pcap capture handle which is an abstraction over the pcap_t provided by pcap. There are many ways to instantiate and interact with a pcap handle, so phantom types are used to express these behaviors.
Device
A network device name and pcap’s description of it.
DeviceFlags
IfFlags
Network device flags.
Packet
Represents a network packet with its header and raw data.

Enums§

Active
Phantom type representing an active capture handle.
ConnectionStatus
Indication of whether the adapter is connected or not; for wireless interfaces, “connected” means “associated with a network”.
Dead
Phantom type representing a dead capture handle. This can be use to create new save files that are not generated from an active capture. Implements Activated because it behaves nearly the same as a live handle.
Error
An error received from pcap
Inactive
Phantom type representing an inactive capture handle.
Offline
Phantom type representing an offline capture handle, from a pcap dump file. Implements Activated because it behaves nearly the same as a live handle.