Skip to navigation

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.

pub enum WorkerSdkError {
InvalidInput(String),
Callback(String),
Transport(String),
Downstream {
source: Box<WorkerSdkError>,
continuation_id: String,
},
Serialization(Error),
}

Referenced types: String, Box, WorkerSdkError, Error

Error returned by worker SDK callbacks and runtime helpers.

Variants

InvalidInput(String)

InvalidInput(String)

Referenced types: String

Invalid host-provided input.

Callback(String)

Callback(String)

Referenced types: String

Worker callback failed.

Transport(String)

Transport(String)

Referenced types: String

Worker transport failed.

Downstream

Downstream

An unchanged downstream continuation failure, preserving its original display. Propagate this error to retain provenance; constructing a new error represents a distinct plugin failure. The host checks the invocation’s continuation ID.

Fields

source: Box<WorkerSdkError>

Original SDK error, with unchanged execution/reporting semantics.

continuation_id: String

Host-issued continuation that returned the failure.

Serialization(Error)

Serialization(Error)

Referenced types: Error

JSON serialization failed.

Trait Implementations

impl Debug for WorkerSdkError

impl Debug for WorkerSdkError

Referenced types: Debug, WorkerSdkError

fmt

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

Referenced types: fmt, Formatter, Result

impl Display for WorkerSdkError

impl Display for WorkerSdkError

Referenced types: Display, WorkerSdkError

fmt

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

Referenced types: fmt, Formatter, Result

impl Error for WorkerSdkError

impl Error for WorkerSdkError

Referenced types: Error, WorkerSdkError

source

fn source(&self) -> Option<&(dyn Error + 'static)>

Referenced types: source, Option, Error

description

fn description(&self) -> &str

Referenced types: description, str

cause

fn cause(&self) -> Option<&dyn Error>

Referenced types: cause, Option, Error

provide

fn provide<'a>(&'a self, request: &mut Request<'a>)

Referenced types: provide, Request

impl From<ConversionError> for WorkerSdkError

impl From<ConversionError> for WorkerSdkError

Referenced types: From, WorkerSdkError

from

fn from(error: ConversionError) -> Self

Referenced types: from

impl From< Error> for WorkerSdkError

impl From< Error> for WorkerSdkError

Referenced types: From, Error, WorkerSdkError

from

fn from(source: Error) -> Self

Referenced types: from, Error

impl From<WorkerSdkError> for PluginError

impl From<WorkerSdkError> for PluginError

Referenced types: From, WorkerSdkError, PluginError

from

fn from(error: WorkerSdkError) -> Self

Referenced types: from, WorkerSdkError

Map worker author errors to shared configuration, serialization, or registration errors.