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]

Gets the name of the link type, such as EN10MB

Gets the description of a link type.

Trait Implementations

impl Debug for Linktype
[src]

Formats the value using the given formatter.

impl PartialEq for Linktype
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Linktype
[src]

impl Clone for Linktype
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Linktype
[src]