Crate with_async_context

Source

Macros§

init_context_logger
Macro to initialize the context logger

Structs§

AsyncContext
Represents an async execution context that carries data of type C while executing a future of type F that produces output of type T
ContextLogger
A logger implementation that includes async context information in log messages

Functions§

context_as_string
Returns the current context as a string, or “(no context)” if none exists
execute_with_async_context
Creates a new async context and executes the provided future within it
from_context
Provides immutable access to the current context value
from_context_mut
Provides mutable access to the current context value