For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
  • About NVIDIA NeMo Relay
    • Overview
    • Architecture
    • Ecosystem
    • Concepts
    • Release Notes
  • Getting Started
    • Agent Runtime Primer
    • Prerequisites
    • Installation
    • Configuration / Setup
    • Quick Start
  • NVIDIA NeMo Relay CLI
    • About
    • Basic Usage
    • Claude Code
    • Codex
    • Cursor
    • Hermes Agent
  • Supported Integrations
    • About
    • OpenClaw Plugin Guide
    • LangChain Integration Guide
    • LangGraph Integration Guide
    • Deep Agents Integration Guide
  • Instrument Applications
    • About
    • Adding Scopes and Marks
    • Instrument a Tool Call
    • Instrument an LLM Call
    • Add Middleware
    • Code Examples
  • Observability Plugin
    • About
    • Configuration
    • Agent Trajectory Interchange Format (ATIF)
    • Agent Trajectory Observability Format (ATOF)
    • OpenTelemetry
    • OpenInference
  • Adaptive Plugin
    • About
    • Configuration
    • Adaptive Cache Governor (ACG)
    • Adaptive Hints
  • NeMo Guardrails Plugin
    • About
    • Configuration
  • Integrate into Frameworks
    • About
    • Adding Scopes
    • Wrap Tool Calls
    • Wrap LLM Calls
    • Handle Non-Serializable Data
    • Using Codecs
    • Provider Codecs
    • Provider Response Codecs
    • Code Examples
  • Build Plugins
    • About
    • Define a Plugin
    • Validate Plugin Configuration
    • Plugin Configuration Files
    • Register Plugin Behavior
    • Design Plugin Configuration
    • NeMo Guardrails Example Plugin
    • Code Examples
  • Contribute
    • About
    • Development Setup
    • Workflow and Reviews
    • Testing and Documentation
  • Reference
    • APIs
      • Python Library Reference
      • Node.js Library Reference
      • Rust Library Reference
        • nemo-relay
        • nemo-relay-adaptive
        • nemo-relay-ffi
          • api
          • callable
          • convert
          • error
            • NemoRelayStatus
            • clear_last_error
            • last_error_message
            • nemo_relay_last_error
            • nemo_relay_set_last_error_message
            • set_last_error
            • status_from_error
            • status_from_plugin_error
          • types
    • Performance
  • Resources
    • Support and FAQs
    • Glossary
    • Troubleshooting Guide
    • Community
    • Legal
NVIDIANVIDIA
Developer-friendly docs for your API
Privacy Policy | Your Privacy Choices | Terms of Service | Accessibility | Corporate Policies | Product Security | Contact

Copyright © 2026, NVIDIA Corporation.

LogoLogo
On this page
  • Variants
  • Ok = 0
  • AlreadyExists = 1
  • NotFound = 2
  • ScopeStackEmpty = 3
  • GuardrailRejected = 4
  • Internal = 5
  • NullPointer = 6
  • InvalidJson = 7
  • InvalidUtf8 = 8
  • InvalidArg = 9
  • Trait Implementations
  • impl Clone for NemoRelayStatus
  • clone
  • clone_from
  • impl Debug for NemoRelayStatus
  • fmt
  • impl From<&FlowError> for NemoRelayStatus
  • from
  • impl PartialEq for NemoRelayStatus
  • eq
  • ne
  • impl Copy for NemoRelayStatus
  • impl Eq for NemoRelayStatus
  • impl StructuralPartialEq for NemoRelayStatus
ReferenceAPIsRust Library Referencenemo-relay-ffierror

Enum Nemo Relay Status

||View as Markdown|
Previous

Module error

Next

Function clear_last_error

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

1#[repr(i32)]pub enum NemoRelayStatus {
2 Ok = 0,
3 AlreadyExists = 1,
4 NotFound = 2,
5 ScopeStackEmpty = 3,
6 GuardrailRejected = 4,
7 Internal = 5,
8 NullPointer = 6,
9 InvalidJson = 7,
10 InvalidUtf8 = 8,
11 InvalidArg = 9,
12}

Status codes returned by all FFI functions.

Every extern "C" function in this library returns an NemoRelayStatus. On non-Ok returns, call nemo_relay_last_error on the same thread to retrieve a human-readable error message.

Variants

Ok = 0

Ok = 0

Operation completed successfully.

AlreadyExists = 1

AlreadyExists = 1

A resource with the given name already exists.

NotFound = 2

NotFound = 2

The requested resource was not found.

ScopeStackEmpty = 3

ScopeStackEmpty = 3

The scope stack is empty (no active scope).

GuardrailRejected = 4

GuardrailRejected = 4

A guardrail rejected the operation.

Internal = 5

Internal = 5

An internal runtime error occurred.

NullPointer = 6

NullPointer = 6

A required pointer argument was null.

InvalidJson = 7

InvalidJson = 7

A JSON string argument could not be parsed.

InvalidUtf8 = 8

InvalidUtf8 = 8

A C string argument contained invalid UTF-8.

InvalidArg = 9

InvalidArg = 9

A function argument had an invalid value (e.g. malformed UUID).

Trait Implementations

impl Clone for NemoRelayStatus

impl Clone for NemoRelayStatus

clone

fn clone(&self) -> NemoRelayStatus

clone_from

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

impl Debug for NemoRelayStatus

impl Debug for NemoRelayStatus

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl From<&FlowError> for NemoRelayStatus

impl From<&FlowError> for NemoRelayStatus

from

fn from(e: &FlowError) -> Self

impl PartialEq for NemoRelayStatus

impl PartialEq for NemoRelayStatus

eq

fn eq(&self, other: &NemoRelayStatus) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl Copy for NemoRelayStatus

impl Copy for NemoRelayStatus

impl Eq for NemoRelayStatus

impl Eq for NemoRelayStatus

impl StructuralPartialEq for NemoRelayStatus

impl StructuralPartialEq for NemoRelayStatus