Enum pnet::packet::PacketData [] [src]

pub enum PacketData<'p> {
    Owned(Vec<u8>),
    Borrowed(&'p [u8]),
}

Variants

Packet owns its contents

Packet borrows its contents

Methods

impl<'p> PacketData<'p>
[src]

Trait Implementations

impl<'p> PartialEq for PacketData<'p>
[src]

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

This method tests for !=.

impl<'p> Index<usize> for PacketData<'p>
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl<'p> Index<Range<usize>> for PacketData<'p>
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl<'p> Index<RangeTo<usize>> for PacketData<'p>
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl<'p> Index<RangeFrom<usize>> for PacketData<'p>
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl<'p> Index<RangeFull> for PacketData<'p>
[src]

The returned type after indexing

The method for the indexing (container[index]) operation