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>

Trait Implementations

impl Debug for Device
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl AsRef<str> for Device
[src]

fn as_ref(&self) -> &str

Performs the conversion.