Struct pcap::Device [] [src]

pub struct Device {
    pub name: String,
    pub desc: Option<String>,
}

A network device name and (potentially) pcap's description of it.

Fields

Methods

impl Device
[src]

Opens a Capture<Active> on this device.

Returns the default Device suitable for captures according to pcap_lookupdev, or an error from pcap.

Returns a vector of Devices known by pcap via pcap_findalldevs.

Trait Implementations

impl Debug for Device
[src]

Formats the value using the given formatter.