Enum netsim_embed::PacketData [−]
Packet data.
Variants
A packet owns its contents.
A packet borrows its contents.
Implementations
impl<'p> PacketData<'p>
impl<'p> PacketData<'p>
pub fn as_slice(&self) -> &[u8]
Get a slice of the packet data.
pub fn to_immutable(self) -> PacketData<'p>
No-op - returns self
.
pub fn len(&self) -> usize
A length of the packet data.
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 ne(&self, other: &PacketData<'p>) -> bool
impl<'p> StructuralPartialEq for PacketData<'p>
impl<'p> StructuralPartialEq for PacketData<'p>
Auto Trait Implementations
impl<'p> RefUnwindSafe for PacketData<'p>
impl<'p> RefUnwindSafe for PacketData<'p>
impl<'p> Send for PacketData<'p>
impl<'p> Send for PacketData<'p>
impl<'p> Sync for PacketData<'p>
impl<'p> Sync for PacketData<'p>
impl<'p> Unpin for PacketData<'p>
impl<'p> Unpin for PacketData<'p>
impl<'p> UnwindSafe for PacketData<'p>
impl<'p> UnwindSafe for PacketData<'p>
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub 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>,