Enum pnet::packet::PacketData
[−]
[src]
pub enum PacketData<'p> { Owned(Vec<u8>), Borrowed(&'p [u8]), }
Variants
Owned(Vec<u8>)
Packet owns its contents
Borrowed(&'p [u8])
Packet borrows its contents
Methods
impl<'p> PacketData<'p>
[src]
Trait Implementations
impl<'p> PartialEq for PacketData<'p>
[src]
fn eq(&self, __arg_0: &PacketData<'p>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PacketData<'p>) -> bool
This method tests for !=
.
impl<'p> Index<usize> for PacketData<'p>
[src]
type Output = u8
The returned type after indexing
fn index(&self, index: usize) -> &u8
The method for the indexing (container[index]
) operation
impl<'p> Index<Range<usize>> for PacketData<'p>
[src]
type Output = [u8]
The returned type after indexing
fn index(&self, index: Range<usize>) -> &[u8]
The method for the indexing (container[index]
) operation
impl<'p> Index<RangeTo<usize>> for PacketData<'p>
[src]
type Output = [u8]
The returned type after indexing
fn index(&self, index: RangeTo<usize>) -> &[u8]
The method for the indexing (container[index]
) operation
impl<'p> Index<RangeFrom<usize>> for PacketData<'p>
[src]
type Output = [u8]
The returned type after indexing
fn index(&self, index: RangeFrom<usize>) -> &[u8]
The method for the indexing (container[index]
) operation