pub struct CsLookupStage {
pub cs: Arc<dyn ErasedContentStore>,
}Expand description
Look up the CS before hitting the PIT/FIB.
On a cache hit: stores CsEntry in ctx.tags, sets ctx.cs_hit = true,
sets ctx.out_faces = [ctx.face_id], and returns Action::Satisfy(ctx)
so the dispatcher fans the cached Data back to the requesting face without
touching the PIT.
On a miss: Action::Continue(ctx) to proceed to PitCheckStage.
Fields§
§cs: Arc<dyn ErasedContentStore>Implementations§
Source§impl CsLookupStage
impl CsLookupStage
pub async fn process(&self, ctx: PacketContext) -> Action
Auto Trait Implementations§
impl Freeze for CsLookupStage
impl !RefUnwindSafe for CsLookupStage
impl Send for CsLookupStage
impl Sync for CsLookupStage
impl Unpin for CsLookupStage
impl !UnwindSafe for CsLookupStage
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