> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/relay/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/relay/_mcp/server.

# Trait Native Plugin

> Trait implemented by Rust native plugins.

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`.

<pre />

Trait implemented by Rust native plugins.

## Required Methods

#### `plugin_kind`

<pre />

Returns the stable plugin kind.

#### `register`

<pre />

Registers runtime behavior through the component-scoped plugin context.

## Provided Methods

#### `allows_multiple_components`

<pre />

Returns whether the plugin allows multiple configured components.

#### `executor_config`

<pre />

Configures the SDK-owned Tokio executor used by typed middleware.

This supplies the plugin-wide default. Relay applies an optional component-local `[plugins.dynamic.config.executor]` override when it registers each component.

#### `executor_config_for_component`

<pre />

Resolves the executor configuration for one component registration.

Override this only when the plugin needs custom component configuration rules. The default recognizes `executor.worker_threads` and validates that it is a positive integer.

#### `validate`

<pre />

Validates one component-local JSON config object.

## Implementors