pub trait NetPktExt: NetPkt {
    // Provided methods
    fn get_recv(&self) -> U64 { ... }
    fn hash(&self) -> B64 { ... }
    fn net_header(&self) -> NetPktHeader { ... }
    fn size(&self) -> u16 { ... }
    fn as_netparts(&self) -> NetPktParts<'_> 
       where Self: Sized { ... }
    fn to_default_str(&self) -> String { ... }
}
Expand description

Utilities for NetPkt

Provided Methods§

fn get_recv(&self) -> U64

fn hash(&self) -> B64

fn net_header(&self) -> NetPktHeader

fn size(&self) -> u16

Padded size

fn as_netparts(&self) -> NetPktParts<'_> where Self: Sized,

fn to_default_str(&self) -> String

Implementors§

§

impl<T> NetPktExt for Twhere T: NetPkt + ?Sized,