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.

#[non_exhaustive]pub enum CliFailureCode {
ChildCleanup,
UpstreamResponse,
Command,
Configuration,
GatewayBind,
GatewayServe,
Acquire,
ChildSpawn,
ChildWait,
HookForward,
UpstreamTransport,
}

Failures at integrated CLI operation boundaries; causes come from producers.

Variants (Non-exhaustive)

ChildCleanup

ChildCleanup

Failure to clean up a supervised child tree.

UpstreamResponse

UpstreamResponse

Failure while reading or decoding an upstream response body.

Command

Command

Observation identified by cli.command_failed.

Configuration

Configuration

Observation identified by cli.configuration_failed.

GatewayBind

GatewayBind

Observation identified by cli.gateway.bind_failed.

GatewayServe

GatewayServe

Observation identified by cli.gateway.serve_failed.

Acquire

Acquire

Observation identified by cli.acquire_failed.

ChildSpawn

ChildSpawn

Observation identified by cli.child.spawn_failed.

ChildWait

ChildWait

Observation identified by cli.child.wait_failed.

HookForward

HookForward

Observation identified by cli.hook.forward_failed.

UpstreamTransport

UpstreamTransport

Observation identified by cli.upstream.transport_failed.

Implementations

impl CliFailureCode

impl CliFailureCode

Referenced types: CliFailureCode

canonical_name

pub const fn canonical_name(self) -> &'static str

Referenced types: str

Stable catalogue name.

allowed_classes

pub const fn allowed_classes(self) -> &'static [FailureClass]

Referenced types: FailureClass

Causes admissible at CLI boundaries; producers must not infer from text.

Trait Implementations

impl Clone for CliFailureCode

impl Clone for CliFailureCode

Referenced types: Clone, CliFailureCode

clone

fn clone(&self) -> CliFailureCode

Referenced types: clone, CliFailureCode

clone_from

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

Referenced types: clone_from

impl Debug for CliFailureCode

impl Debug for CliFailureCode

Referenced types: Debug, CliFailureCode

fmt

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

Referenced types: fmt, Formatter, Result, (), Error

impl<'de> Deserialize<'de> for CliFailureCode

impl<'de> Deserialize<'de> for CliFailureCode

Referenced types: Deserialize, CliFailureCode

deserialize

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

Referenced types: deserialize, Result, CliFailureCode, Deserializer, Error

impl Hash for CliFailureCode

impl Hash for CliFailureCode

Referenced types: Hash, CliFailureCode

hash

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

Referenced types: hash, &mut __H, Hasher

hash_slice

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

Referenced types: hash_slice, &mut H, Hasher, Sized

impl JsonSchema for CliFailureCode

impl JsonSchema for CliFailureCode

Referenced types: CliFailureCode

schema_name

fn schema_name() -> String

Referenced types: String

schema_id

fn schema_id() -> Cow<'static, str>

Referenced types: Cow, str

json_schema

fn json_schema(generator: &mut SchemaGenerator) -> Schema

is_referenceable

fn is_referenceable() -> bool

Referenced types: bool

impl Ord for CliFailureCode

impl Ord for CliFailureCode

Referenced types: Ord, CliFailureCode

cmp

fn cmp(&self, other: &CliFailureCode) -> Ordering

Referenced types: cmp, CliFailureCode, Ordering

max

fn max(self, other: Self) -> Selfwhere
Self: Sized,

Referenced types: max, Sized

min

fn min(self, other: Self) -> Selfwhere
Self: Sized,

Referenced types: min, Sized

clamp

fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized,

Referenced types: clamp, Sized

impl PartialEq for CliFailureCode

impl PartialEq for CliFailureCode

Referenced types: PartialEq, CliFailureCode

eq

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

Referenced types: eq, CliFailureCode, bool

ne

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

Referenced types: ne, &Rhs, bool

impl PartialOrd for CliFailureCode

impl PartialOrd for CliFailureCode

Referenced types: PartialOrd, CliFailureCode

partial_cmp

fn partial_cmp(&self, other: &CliFailureCode) -> Option<Ordering>

Referenced types: partial_cmp, CliFailureCode, Option, Ordering

lt

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

Referenced types: lt, &Rhs, bool

le

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

Referenced types: le, &Rhs, bool

gt

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

Referenced types: gt, &Rhs, bool

ge

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

Referenced types: ge, &Rhs, bool

impl Serialize for CliFailureCode

impl Serialize for CliFailureCode

Referenced types: Serialize, CliFailureCode

serialize

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

Referenced types: serialize, Result, Serializer, Ok, Error

impl Copy for CliFailureCode

impl Copy for CliFailureCode

Referenced types: Copy, CliFailureCode

impl Eq for CliFailureCode

impl Eq for CliFailureCode

Referenced types: Eq, CliFailureCode

impl StructuralPartialEq for CliFailureCode

impl StructuralPartialEq for CliFailureCode

Referenced types: StructuralPartialEq, CliFailureCode