Enum pcap_parser::Data[][src]

pub enum Data<'a> {
    Owned(Vec<u8>),
    Borrowed(&'a [u8]),
}
Expand description

A container for owned or borrowed data

Variants

Owned(Vec<u8>)

Tuple Fields of Owned

0: Vec<u8>
Borrowed(&'a [u8])

Tuple Fields of Borrowed

0: &'a [u8]

Implementations

Trait Implementations

Performs the conversion.

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.