pub struct PacketId(pub u32);
Expand description
A packet ID.
This packet ID can be used to obtain information about a specific ethernet frame (either sent or received) from the DMA.
The main use is obtaining timestamps for frames using EthernetDMA::poll_timestamp
Tuple Fields§
§0: u32
Implementations§
Trait Implementations§
Source§impl From<PacketId> for PacketMeta
impl From<PacketId> for PacketMeta
Source§impl From<PacketMeta> for PacketId
impl From<PacketMeta> for PacketId
Source§fn from(value: PacketMeta) -> Self
fn from(value: PacketMeta) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for PacketId
Auto Trait Implementations§
impl Freeze for PacketId
impl RefUnwindSafe for PacketId
impl Send for PacketId
impl Sync for PacketId
impl Unpin for PacketId
impl UnwindSafe for PacketId
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