[][src]Struct pcap_file::pcapng::Ipv4Record

pub struct Ipv4Record<'a> {
    pub ip_addr: Cow<'a, [u8]>,
    pub names: Vec<Cow<'a, str>>,
}

Fields

ip_addr: Cow<'a, [u8]>names: Vec<Cow<'a, str>>

Methods

impl<'a> Ipv4Record<'a>[src]

pub fn into_owned(self) -> Ipv4Record<'static>[src]

Returns a version of self with all fields converted to owning versions.

impl<'a> Ipv4Record<'a>[src]

pub fn from_slice(slice: &'a [u8]) -> Result<Self, PcapError>[src]

Trait Implementations

impl<'a> Clone for Ipv4Record<'a>[src]

impl<'a> Debug for Ipv4Record<'a>[src]

Auto Trait Implementations

impl<'a> Send for Ipv4Record<'a>

impl<'a> Sync for Ipv4Record<'a>

impl<'a> Unpin for Ipv4Record<'a>

impl<'a> UnwindSafe for Ipv4Record<'a>

impl<'a> RefUnwindSafe for Ipv4Record<'a>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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