Skip to main content

finalize_context

Function finalize_context 

Source
pub fn finalize_context(ctx: BoxContext) -> CacheContext
Expand description

Convert a BoxContext (SmallBox) into a CacheContext.

This function converts the SmallBox to a Box and then calls into_cache_context(). The allocation happens only at the end of the request lifecycle when the context is finalized.