Enum Plugin Error

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 PluginError {
    InvalidConfig(String),
    Conflict(String),
    NotFound(String),
    Serialization(Error),
    Internal(String),
    RegistrationFailed(String),
}

Error type for generic plugin operations.

Variants

InvalidConfig(String)

InvalidConfig(String)

Configuration validation failed.

Conflict(String)

Conflict(String)

The requested mutation conflicts with current plugin state.

NotFound(String)

NotFound(String)

The requested plugin resource was not found.

Serialization(Error)

Serialization(Error)

A serialization or deserialization operation failed.

Internal(String)

Internal(String)

An internal plugin-system error occurred.

RegistrationFailed(String)

RegistrationFailed(String)

A runtime middleware/subscriber registration failed.

Trait Implementations

impl Debug for PluginError

impl Debug for PluginError

fmt

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

impl Display for PluginError

impl Display for PluginError

fmt

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

impl Error for PluginError

impl Error for PluginError

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 PluginError

impl From<Error> for PluginError

from

fn from(source: Error) -> Self