#[non_exhaustive]pub struct PacketMeta {
pub id: u32,
}Expand description
Metadata associated with a packet.
The packet metadata is a set of attributes associated to network packets
as they travel up or down the stack. The metadata is get/set by the
Driver implementations or by the user when sending/receiving packets
from a socket.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: u32An identifier associated with a transmitted or received packet.
Trait Implementations§
Source§impl Clone for PacketMeta
impl Clone for PacketMeta
Source§fn clone(&self) -> PacketMeta
fn clone(&self) -> PacketMeta
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PacketMeta
impl Debug for PacketMeta
Source§impl Default for PacketMeta
impl Default for PacketMeta
Source§fn default() -> PacketMeta
fn default() -> PacketMeta
Returns the “default value” for a type. Read more
Source§impl Format for PacketMeta
impl Format for PacketMeta
Source§impl Hash for PacketMeta
impl Hash for PacketMeta
Source§impl PartialEq for PacketMeta
impl PartialEq for PacketMeta
impl Copy for PacketMeta
impl Eq for PacketMeta
impl StructuralPartialEq for PacketMeta
Auto Trait Implementations§
impl Freeze for PacketMeta
impl RefUnwindSafe for PacketMeta
impl Send for PacketMeta
impl Sync for PacketMeta
impl Unpin for PacketMeta
impl UnwindSafe for PacketMeta
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