Function propagate_scope_to_thread

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

pub fn propagate_scope_to_thread() -> Result<ScopeStackHandle>

Capture the current scope stack handle for use in another thread.

This returns the handle currently visible to the caller so it can be passed into set_thread_scope_stack elsewhere.

Returns

A Result containing the active ScopeStackHandle.

Errors

Returns an error when the current context does not yet own an active scope stack.

Notes

The returned handle is shared; it does not clone the underlying stack.