pub trait NetPkt: Debug {
// Required methods
fn as_point(&self) -> &dyn Point;
fn hash_ref(&self) -> &B64;
fn net_header_ref(&self) -> &NetPktHeader;
fn recv(&self) -> Option<U64>;
fn byte_segments(&self) -> ByteSegments<'_>;
// Provided methods
fn net_header_mut(&mut self) -> Option<&mut NetPktHeader> { ... }
fn as_netbox(&self) -> Box<NetPktFatPtr> { ... }
fn as_netarc(&self) -> NetPktArc ⓘ { ... }
}
Expand description
Required Methods§
fn as_point(&self) -> &dyn Point
fn hash_ref(&self) -> &B64
fn net_header_ref(&self) -> &NetPktHeader
fn recv(&self) -> Option<U64>
fn recv(&self) -> Option<U64>
recv is somewhat special. It depends on the context. Reading directly from the database it should return the stamp at which it was inserted. NOTE: Do not rely on this value being unique - in the db or otherwise.