Enum netsim_embed::PacketData [−]
Expand description
Packet data.
Variants
A packet owns its contents.
A packet borrows its contents.
Implementations
impl<'p> PacketData<'p>
impl<'p> PacketData<'p>pub fn to_immutable(self) -> PacketData<'p>
pub fn to_immutable(self) -> PacketData<'p>No-op - returns self.
Trait Implementations
impl<'p> Index<Range<usize>> for PacketData<'p>
impl<'p> Index<Range<usize>> for PacketData<'p>impl<'p> Index<RangeFrom<usize>> for PacketData<'p>
impl<'p> Index<RangeFrom<usize>> for PacketData<'p>impl<'p> Index<RangeFull> for PacketData<'p>
impl<'p> Index<RangeFull> for PacketData<'p>impl<'p> Index<RangeTo<usize>> for PacketData<'p>
impl<'p> Index<RangeTo<usize>> for PacketData<'p>impl<'p> Index<usize> for PacketData<'p>
impl<'p> Index<usize> for PacketData<'p>impl<'p> PartialEq<PacketData<'p>> for PacketData<'p>
impl<'p> PartialEq<PacketData<'p>> for PacketData<'p>pub fn eq(&self, other: &PacketData<'p>) -> bool
pub fn eq(&self, other: &PacketData<'p>) -> boolThis method tests for self and other values to be equal, and is used
by ==. Read more
pub fn ne(&self, other: &PacketData<'p>) -> bool
pub fn ne(&self, other: &PacketData<'p>) -> boolThis method tests for !=.
impl<'p> StructuralPartialEq for PacketData<'p>
Auto Trait Implementations
impl<'p> RefUnwindSafe for PacketData<'p>
impl<'p> Send for PacketData<'p>
impl<'p> Sync for PacketData<'p>
impl<'p> Unpin for PacketData<'p>
impl<'p> UnwindSafe for PacketData<'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>,