Enum pnet_packet::MutPacketData [−][src]
Expand description
Mutable packet data.
Variants
Expand description
Owned mutable packet data.
Expand description
Borrowed mutable packet data.
Implementations
impl<'p> MutPacketData<'p>
[src]
impl<'p> MutPacketData<'p>
[src]pub fn as_mut_slice(&mut self) -> &mut [u8]
[src]
pub fn as_mut_slice(&mut self) -> &mut [u8]
[src]Get packet data as a mutable slice.
pub fn to_immutable(self) -> PacketData<'p>
[src]
pub fn to_immutable(self) -> PacketData<'p>
[src]Get an immutable version of packet data.
Trait Implementations
impl<'p> Index<Range<usize>> for MutPacketData<'p>
[src]
impl<'p> Index<Range<usize>> for MutPacketData<'p>
[src]impl<'p> Index<RangeFrom<usize>> for MutPacketData<'p>
[src]
impl<'p> Index<RangeFrom<usize>> for MutPacketData<'p>
[src]impl<'p> Index<RangeFull> for MutPacketData<'p>
[src]
impl<'p> Index<RangeFull> for MutPacketData<'p>
[src]impl<'p> Index<RangeTo<usize>> for MutPacketData<'p>
[src]
impl<'p> Index<RangeTo<usize>> for MutPacketData<'p>
[src]impl<'p> Index<usize> for MutPacketData<'p>
[src]
impl<'p> Index<usize> for MutPacketData<'p>
[src]impl<'p> IndexMut<Range<usize>> for MutPacketData<'p>
[src]
impl<'p> IndexMut<Range<usize>> for MutPacketData<'p>
[src]impl<'p> IndexMut<RangeFrom<usize>> for MutPacketData<'p>
[src]
impl<'p> IndexMut<RangeFrom<usize>> for MutPacketData<'p>
[src]impl<'p> IndexMut<RangeFull> for MutPacketData<'p>
[src]
impl<'p> IndexMut<RangeFull> for MutPacketData<'p>
[src]impl<'p> IndexMut<RangeTo<usize>> for MutPacketData<'p>
[src]
impl<'p> IndexMut<RangeTo<usize>> for MutPacketData<'p>
[src]impl<'p> IndexMut<usize> for MutPacketData<'p>
[src]
impl<'p> IndexMut<usize> for MutPacketData<'p>
[src]impl<'p> PartialEq<MutPacketData<'p>> for MutPacketData<'p>
[src]
impl<'p> PartialEq<MutPacketData<'p>> for MutPacketData<'p>
[src]pub fn eq(&self, other: &MutPacketData<'p>) -> bool
[src]
pub fn eq(&self, other: &MutPacketData<'p>) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &MutPacketData<'p>) -> bool
[src]
pub fn ne(&self, other: &MutPacketData<'p>) -> bool
[src]This method tests for !=
.