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

# Struct Upstream Failure

> Structured provider failure surfaced only for explicitly retry-aware dispatches.

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 />

Structured provider failure surfaced only for explicitly retry-aware dispatches.

## Fields

### `status: Option<u16>`

HTTP status when a provider response was received.

### `body: String`

Bounded response body or transport error message.

### `headers: BTreeMap<String, String>`

Safe response headers captured from the provider.

### `class: UpstreamFailureClass`

Retry classification.

## Implementations

### `impl UpstreamFailure`

<pre />

#### `is_retryable`

<pre />

Whether Switchyard may be consulted for another bounded provider attempt.

## Trait Implementations

### `impl Clone for UpstreamFailure`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl Debug for UpstreamFailure`

<pre />

#### `fmt`

<pre />

### `impl<'de> Deserialize<'de> for UpstreamFailure`

<pre />

#### `deserialize`

<pre />

### `impl Display for UpstreamFailure`

<pre />

#### `fmt`

<pre />

### `impl Serialize for UpstreamFailure`

<pre />

#### `serialize`

<pre />