pub struct PitCheckStage {
pub pit: Arc<Pit>,
}Expand description
Checks the PIT for a pending Interest.
Duplicate suppression: if the nonce has already been seen in the PIT entry, the Interest is a loop — drop it.
Aggregation: if a PIT entry already exists for the same (name, selector),
add an in-record and return Action::Drop (the original forwarder already
has an outstanding Interest; no need to forward again).
New entry: create a PIT entry, write ctx.pit_token, continue to
StrategyStage.
Fields§
§pit: Arc<Pit>Implementations§
Source§impl PitCheckStage
impl PitCheckStage
pub fn process(&self, ctx: PacketContext) -> Action
Auto Trait Implementations§
impl Freeze for PitCheckStage
impl !RefUnwindSafe for PitCheckStage
impl Send for PitCheckStage
impl Sync for PitCheckStage
impl Unpin for PitCheckStage
impl !UnwindSafe for PitCheckStage
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