Enum Worker SdkError

View as Markdown

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.

pub enum WorkerSdkError {
    InvalidInput(String),
    Callback(String),
    Transport(String),
    Serialization(Error),
}

Error returned by worker SDK callbacks and runtime helpers.

Variants

InvalidInput(String)

InvalidInput(String)

Invalid host-provided input.

Callback(String)

Callback(String)

Worker callback failed.

Transport(String)

Transport(String)

Worker transport failed.

Serialization(Error)

Serialization(Error)

JSON serialization failed.

Trait Implementations

impl Debug for WorkerSdkError

impl Debug for WorkerSdkError

fmt

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

impl Display for WorkerSdkError

impl Display for WorkerSdkError

fmt

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

impl Error for WorkerSdkError

impl Error for WorkerSdkError

source

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

description

fn description(&self) -> &str

cause

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

provide

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

impl From< Error> for WorkerSdkError

impl From<Error> for WorkerSdkError

from

fn from(source: Error) -> Self