Struct Plugin Runtime
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.
Cloneable handle for calling the Relay host runtime from worker callbacks.
Implementations
impl PluginRuntime
Referenced types: PluginRuntime
diagnostics
Referenced types: WorkerDiagnostics
Negotiate once per activation. Disabled/unsupported facades skip lazy diagnostic factories and leave execution and operational logging intact.
log
Referenced types: PluginLogLevel, str, Option, Map, String, Json, Result, ()
Emits one operational log record through the Relay host’s configured sinks.
The host authenticates the activation and applies its own log-level filter. target identifies the plugin subsystem; pass an empty string to use the plugin’s default target.
trace
Referenced types: str, Option, Map, String, Json, Result, ()
Emits an info-level operational log record through the Relay host.
debug
Referenced types: str, Option, Map, String, Json, Result, ()
Emits a debug-level operational log record through the Relay host.
info
Referenced types: str, Option, Map, String, Json, Result, ()
Emits an info-level operational log record through the Relay host.
warn
Referenced types: str, Option, Map, String, Json, Result, ()
Emits a warn-level operational log record through the Relay host.
error
Referenced types: str, Option, Map, String, Json, Result, ()
Emits an error-level operational log record through the Relay host.
list_runtime_registrations
Referenced types: Option, BTreeSet, RuntimeRegistrationKind, Result, Vec, RuntimeRegistrationIdentity
List global runtime registrations, optionally filtered by kind.
register_conditional_middleware_guardrail
Referenced types: str, BTreeSet, RuntimeRegistrationKind, Result, ConditionalMiddlewareGuardrailHandle, Fn, String, Send, Sync, Future, Option
Register a callback-based gate owned by this worker activation.
deregister_conditional_middleware_guardrail
Referenced types: ConditionalMiddlewareGuardrailHandle, Result, bool
Deregister a callback-based gate owned by this worker activation.
emit_mark
Referenced types: str, Option, Json, Result, ()
Emits a mark event through the host runtime.
emit_mark_with_options
Referenced types: str, Option, Json, EmitMarkOptions, Result, ()
Emits a mark event through the host runtime with optional schema and severity fields.
emit_mark_with_options_and_category
Referenced types: str, Option, Json, EmitMarkOptions, EventCategory, Result, ()
Emits a mark event through the host runtime with optional schema, severity, and category.
current_scope_stack_snapshot
Referenced types: Result, Option, ScopeStackSnapshot
Read owned root-to-top scope identities from the exact current binding. Returns None without a binding and an error if the host cannot read the binding or it has expired. Reads the live scope stack on each call.
inspect_llm_content
Referenced types: ContentSource, ContentSelection, Result, Option, ContentSnapshot
Inspect supplied normalized content through the host’s shared Rust projection.
One RPC returns an independent snapshot. Older hosts return an explicit unsupported error; this method never falls back to a worker-local extraction implementation.
runtime_diagnostics
Referenced types: Result, RuntimeDiagnostics
Return a bounded snapshot of active host runtime diagnostics.
emit_metric
Referenced types: str, Vec, MetricMeasurement, Option, Json, Result, ()
Emits a validated Relay metric-measurement mark through the host runtime.
emit_metric_with_category
Referenced types: str, Vec, MetricMeasurement, Option, Json, EventCategory, Result, ()
Emits a validated Relay metric-measurement mark with an event category.
create_scope_stack
Referenced types: Result, String
Creates an isolated host-owned scope stack.
drop_scope_stack
Referenced types: str, Result, ()
Drops an isolated host-owned scope stack.
with_scope_stack
Referenced types: str, FnOnce, Future
Runs an async operation with runtime calls bound to a specific host-owned scope stack.
This is useful for isolated stacks created with Self::create_scope_stack. The previous worker invocation scope is restored after the future completes.
push_scope
Referenced types: Option, str, ScopeType, Json, Result, String
Pushes a scope through the host runtime.
push_scope_at
Referenced types: Option, str, ScopeType, Json, SystemTime, Result, String
Pushes a scope through the host runtime using an explicit start time.
pop_scope
Referenced types: str, Option, Json, Result, ()
Pops a scope through the host runtime.
pop_scope_at
Referenced types: str, Option, Json, SystemTime, Result, ()
Pops a scope through the host runtime using an explicit end time.
Trait Implementations
impl Clone for PluginRuntime
Referenced types: Clone, PluginRuntime
clone
Referenced types: clone, PluginRuntime
clone_from
Referenced types: clone_from