Function get_handle

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub fn get_handle() -> Result<ScopeHandle>

Return the current scope at the top of the active stack.

This reads the task-local or thread-local scope stack without mutating it and returns a clone of the current top-most ScopeHandle.

Returns

A Result containing the current ScopeHandle when the runtime owner check succeeds.

Errors

Returns an error when the current binding has not initialized the shared runtime ownership correctly.