Struct pcap::Device
[−]
[src]
pub struct Device {
pub name: String,
pub desc: Option<String>,
}A network device as returned from Devices::list_all().
Fields
name: String
desc: Option<String>
Methods
impl Device[src]
fn lookup() -> Result<Device, Error>
Returns the default Device suitable for captures according to pcap_lookupdev, or an error from pcap.