Module scope_stack
Module scope_stack
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
Scope stack storage and propagation helpers.
The runtime tracks the current scope hierarchy through a shared ScopeStack stored in task-local or thread-local state. Advanced callers can use this module to inspect the active scope chain or propagate scope context into worker threads.
Structs
- ScopeStack: Mutable stack of active scopes plus their scope-local registries.
- ThreadScopeStackBinding: Captured thread-local scope stack binding.
Statics
- TASK_SCOPE_STACK: Task-local scope stack handle used by async execution contexts.
Functions
- capture_thread_scope_stack: Capture the current thread-local scope stack binding.
- create_scope_stack: Create a new scope stack handle with an implicit root scope.
- current_scope_stack: Return the scope stack visible to the current execution context.
- propagate_scope_to_thread: Capture the current scope stack handle for use in another thread.
- restore_thread_scope_stack: Restore a previously captured thread-local scope stack binding.
- scope_stack_active: Report whether the current context has an explicitly active scope stack.
- set_thread_scope_stack: Install an explicit scope stack for the current thread.
- sync_thread_scope_stack: Synchronize the thread-local scope stack without marking it explicit.
- task_scope_push: Push a scope handle onto the active stack.
- task_scope_remove: Remove a scope handle from the active stack.
- task_scope_top: Clone the current top-most scope handle from the active stack.
Type Aliases
- ScopeStackHandle: Shared handle type for the runtime scope stack.