[−][src]Struct pcap::Linktype
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
impl RefUnwindSafe for Linktype
impl Send for Linktype
impl Sync for Linktype
impl Unpin for Linktype
impl UnwindSafe for Linktype
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,