pub struct RawPacket {
pub bytes: Bytes,
pub face_id: FaceId,
pub arrival: u64,
}Expand description
A raw, undecoded packet as it enters the engine from a face task.
The timestamp is taken at recv() time — before the packet is enqueued on
the pipeline channel — so Interest lifetime accounting starts from arrival,
not from when the pipeline runner dequeues it.
Fields§
§bytes: BytesWire-format bytes.
face_id: FaceIdFace the packet arrived on.
arrival: u64Arrival time as nanoseconds since the Unix epoch.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RawPacket
impl RefUnwindSafe for RawPacket
impl Send for RawPacket
impl Sync for RawPacket
impl Unpin for RawPacket
impl UnwindSafe for RawPacket
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