Struct pcap::Linktype [] [src]

pub struct Linktype(pub i32);

This is a datalink link type returned from pcap.

Methods

impl Linktype
[src]

fn get_name(&self) -> Result<StringError>

Gets the name of the link type, such as EN10MB

fn get_description(&self) -> Result<StringError>

Gets the description of a link type.

Trait Implementations

impl Debug for Linktype
[src]

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

Formats the value using the given formatter.