Function task_local_extensions::with_extensions
source ยท pub async fn with_extensions<T>(
extensions: Extensions,
fut: impl Future<Output = T>,
) -> (Extensions, T)
Expand description
Sets a task local to Extensions
before fut
is run,
and fetches the contents of the task local Extensions after completion
and returns it.