Enum Reason Code

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

pub enum ReasonCode {
    FullySupported,
    UnsupportedByBackend,
    UnsupportedByModel,
    BackendLimitReached,
    InsufficientEvidence,
    FeatureDisabled,
    UnsafeForRequest,
    PluginIncomplete,
    NotRelevant,
    Custom {
        reason: String,
    },
}

Machine-readable reason for the translation outcome.

Each variant describes WHY an intent received its status. This allows operators to distinguish between plugin limitations, backend limitations, policy decisions, and safety constraints.

Variants

FullySupported

FullySupported

Intent was fully supported and applied.

UnsupportedByBackend

UnsupportedByBackend

Backend does not support this intent type at all.

UnsupportedByModel

UnsupportedByModel

Backend supports the intent but the specific model lacks the feature.

BackendLimitReached

BackendLimitReached

Intent was degraded due to backend-specific limits (e.g., max breakpoints).

InsufficientEvidence

InsufficientEvidence

Not enough historical evidence to apply the intent confidently.

FeatureDisabled

FeatureDisabled

The feature is available but administratively disabled.

UnsafeForRequest

UnsafeForRequest

Applying this intent would be unsafe for the current request.

PluginIncomplete

PluginIncomplete

The plugin implementation is incomplete for this intent type.

NotRelevant

NotRelevant

Intent was not relevant to the current request context.

Custom

Custom

Escape hatch for reason codes not yet in the enum.

Fields

reason: String

Human-readable reason string (for debugging, not machine consumption).

Trait Implementations

impl Clone for ReasonCode

impl Clone for ReasonCode

clone

fn clone(&self) -> ReasonCode

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for ReasonCode

impl Debug for ReasonCode

fmt

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

impl<'de> Deserialize<'de> for ReasonCode

impl<'de> Deserialize<'de> for ReasonCode

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

impl Hash for ReasonCode

impl Hash for ReasonCode

hash

fn hash<__H: Hasher>(&self, state: &mut __H)

hash_slice

fn hash_slice<H>(data: &[Self], state: &mut H)where
    H: Hasher,
    Self: Sized,

impl PartialEq for ReasonCode

impl PartialEq for ReasonCode

eq

fn eq(&self, other: &ReasonCode) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl Serialize for ReasonCode

impl Serialize for ReasonCode

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,

impl Eq for ReasonCode

impl Eq for ReasonCode

impl StructuralPartialEq for ReasonCode

impl StructuralPartialEq for ReasonCode