[][src]Struct pcap_on_demand::Linktype

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.

Implementations

impl Linktype[src]

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

Gets the name of the link type, such as EN10MB

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

Gets the description of a link type.

Trait Implementations

impl Clone for Linktype[src]

impl Copy for Linktype[src]

impl Debug for Linktype[src]

impl Eq for Linktype[src]

impl PartialEq<Linktype> for Linktype[src]

impl StructuralEq for Linktype[src]

impl StructuralPartialEq for Linktype[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.