pub struct CsInsertStage {
pub cs: Arc<dyn ErasedContentStore>,
pub admission: Arc<dyn CsAdmissionPolicy>,
}Expand description
Insert Data into the CS after a successful PIT match.
Reads ctx.raw_bytes (the wire-format Data) and the decoded name.
Freshness defaults to 0 (immediately stale) if FreshnessPeriod is absent.
The admission policy is consulted before inserting — Data that fails the
policy check is not cached.
Fields§
§cs: Arc<dyn ErasedContentStore>§admission: Arc<dyn CsAdmissionPolicy>Implementations§
Source§impl CsInsertStage
impl CsInsertStage
pub async fn process(&self, ctx: PacketContext) -> Action
Auto Trait Implementations§
impl Freeze for CsInsertStage
impl !RefUnwindSafe for CsInsertStage
impl Send for CsInsertStage
impl Sync for CsInsertStage
impl Unpin for CsInsertStage
impl !UnwindSafe for CsInsertStage
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