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
[src]
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
impl Eq for Linktype
[src]
impl PartialEq for Linktype
[src]
fn eq(&self, __arg_0: &Linktype) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Linktype) -> bool
This method tests for !=
.