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.