Struct pcap::Linktype [] [src]

pub struct Linktype(pub i32);
[]

This is a datalink link type.

As an example, Linktype(1) is ethernet. A full list of linktypes is available here.

Methods

impl Linktype

fn get_name(&self) -> Result<String, Error>[]

Gets the name of the link type, such as EN10MB

fn get_description(&self) -> Result<String, Error>[]

Gets the description of a link type.

Trait Implementations

Derived Implementations

impl Eq for Linktype

impl PartialEq for Linktype

fn eq(&self, __arg_0: &Linktype) -> bool

fn ne(&self, __arg_0: &Linktype) -> bool

impl Debug for Linktype

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