pub struct PacketRef<'a, M: RingMem> { /* private fields */ }
Expand description
A reference to a single packet that has not been read out of the ring yet.
Implementations§
Trait Implementations§
Source§impl<'a, M: RingMem> AsRef<IncomingPacket<'a, M>> for PacketRef<'a, M>
impl<'a, M: RingMem> AsRef<IncomingPacket<'a, M>> for PacketRef<'a, M>
Source§fn as_ref(&self) -> &IncomingPacket<'a, M>
fn as_ref(&self) -> &IncomingPacket<'a, M>
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations§
impl<'a, M> Freeze for PacketRef<'a, M>
impl<'a, M> !RefUnwindSafe for PacketRef<'a, M>
impl<'a, M> Send for PacketRef<'a, M>where
M: Sync,
impl<'a, M> Sync for PacketRef<'a, M>where
M: Sync,
impl<'a, M> Unpin for PacketRef<'a, M>
impl<'a, M> !UnwindSafe for PacketRef<'a, M>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more