Enum netsim_embed::MutPacketData [−]
Expand description
Mutable packet data.
Variants
Owned mutable packet data.
Borrowed mutable packet data.
Implementations
impl<'p> MutPacketData<'p>
impl<'p> MutPacketData<'p>pub fn as_mut_slice(&mut self) -> &mut [u8]
pub fn as_mut_slice(&mut self) -> &mut [u8]Get packet data as a mutable slice.
pub fn to_immutable(self) -> PacketData<'p>
pub fn to_immutable(self) -> PacketData<'p>Get an immutable version of packet data.
Trait Implementations
impl<'p> Index<Range<usize>> for MutPacketData<'p>
impl<'p> Index<Range<usize>> for MutPacketData<'p>impl<'p> Index<RangeFrom<usize>> for MutPacketData<'p>
impl<'p> Index<RangeFrom<usize>> for MutPacketData<'p>impl<'p> Index<RangeFull> for MutPacketData<'p>
impl<'p> Index<RangeFull> for MutPacketData<'p>impl<'p> Index<RangeTo<usize>> for MutPacketData<'p>
impl<'p> Index<RangeTo<usize>> for MutPacketData<'p>impl<'p> Index<usize> for MutPacketData<'p>
impl<'p> Index<usize> for MutPacketData<'p>impl<'p> IndexMut<Range<usize>> for MutPacketData<'p>
impl<'p> IndexMut<Range<usize>> for MutPacketData<'p>impl<'p> IndexMut<RangeFrom<usize>> for MutPacketData<'p>
impl<'p> IndexMut<RangeFrom<usize>> for MutPacketData<'p>impl<'p> IndexMut<RangeFull> for MutPacketData<'p>
impl<'p> IndexMut<RangeFull> for MutPacketData<'p>impl<'p> IndexMut<RangeTo<usize>> for MutPacketData<'p>
impl<'p> IndexMut<RangeTo<usize>> for MutPacketData<'p>impl<'p> IndexMut<usize> for MutPacketData<'p>
impl<'p> IndexMut<usize> for MutPacketData<'p>impl<'p> PartialEq<MutPacketData<'p>> for MutPacketData<'p>
impl<'p> PartialEq<MutPacketData<'p>> for MutPacketData<'p>pub fn eq(&self, other: &MutPacketData<'p>) -> bool
pub fn eq(&self, other: &MutPacketData<'p>) -> boolThis method tests for self and other values to be equal, and is used
by ==. Read more
pub fn ne(&self, other: &MutPacketData<'p>) -> bool
pub fn ne(&self, other: &MutPacketData<'p>) -> boolThis method tests for !=.
impl<'p> StructuralPartialEq for MutPacketData<'p>
Auto Trait Implementations
impl<'p> RefUnwindSafe for MutPacketData<'p>
impl<'p> Send for MutPacketData<'p>
impl<'p> Sync for MutPacketData<'p>
impl<'p> Unpin for MutPacketData<'p>
impl<'p> !UnwindSafe for MutPacketData<'p>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,