Skip to navigation

Struct Scope Stack Handle

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -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 struct ScopeStackHandle(/* private fields */);

A shared scope-stack identity, without access to the runtime’s locks or registries.

Cloning shares the stack. Use fork_scope_stack for independent child work and Self::snapshot for read-only inspection.

let stack = nemo_relay::context::create_scope_stack();
let _ = stack.write();
let stack = nemo_relay::context::create_scope_stack();
let _ = stack.0;

Implementations

impl ScopeStackHandle

impl ScopeStackHandle

snapshot

pub fn snapshot(&self) -> Result<ScopeStackSnapshot>

Copy the visible scope hierarchy without exposing mutable runtime state.

Trait Implementations

impl Clone for ScopeStackHandle

impl Clone for ScopeStackHandle

clone

fn clone(&self) -> ScopeStackHandle

clone_from

fn clone_from(&mut self, source: &Self)