Function nemo_relay_scope_stack_create
Function nemo_relay_scope_stack_create
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
#[unsafe(no_mangle)]pub unsafe extern "C" fn nemo_relay_scope_stack_create(
out: *mut *mut FfiScopeStack,
) -> NemoRelayStatus
Create a new isolated scope stack with its own root scope.
Each scope stack is independent: scopes pushed on one do not appear on another. Use nemo_relay_scope_stack_set_thread to bind a stack to the current thread before making other NeMo Relay API calls.
Parameters
out: On success, receives a heap-allocatedFfiScopeStackthat must be freed withnemo_relay_scope_stack_free.
Returns
- Returns
NemoRelayStatus::Okon success and writes the new scope stack toout. - Returns
NemoRelayStatus::NullPointerwhenoutis null.
Safety
out must be a valid, non-null pointer.