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 BuiltinDiagnosticCode {
Failure(FailureCode),
Success(SuccessCode),
Notice(NoticeCode),
}

Referenced types: FailureCode, SuccessCode, NoticeCode

Fixed-size canonical authoring value with one authoritative hierarchy.

Variants (Non-exhaustive)

Failure(FailureCode)

Failure(FailureCode)

Referenced types: FailureCode

Failure observation.

Success(SuccessCode)

Success(SuccessCode)

Referenced types: SuccessCode

Success observation.

Notice(NoticeCode)

Notice(NoticeCode)

Referenced types: NoticeCode

Notice observation.

Implementations

impl BuiltinDiagnosticCode

impl BuiltinDiagnosticCode

Referenced types: BuiltinDiagnosticCode

canonical_name

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

Referenced types: str

Stable name used on the wire and in operational projections.

domain

pub const fn domain(self) -> DiagnosticDomain

Referenced types: DiagnosticDomain

Parent domain derived from the individual catalogue entry.

Outcome does not determine ownership. Match each success/notice explicitly so adding another entry requires choosing its owning domain.

plugin_family

pub const fn plugin_family(self) -> Option<PluginDiagnosticFamily>

Referenced types: Option, PluginDiagnosticFamily

Plugin catalogue family, independent of the execution mechanism.

Each success/notice explicitly selects a family or None; future plugin successes must choose their family when their producer is integrated.

allowed_classes

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

Referenced types: FailureClass

Permitted causes; success and notice codes accept no failure class.

allows_class

pub fn allows_class(self, class: Option<FailureClass>) -> bool

Referenced types: Option, FailureClass, bool

Check a class against the entry-specific catalogue contract.

all

pub fn all() -> &'static [BuiltinDiagnosticCode]

Referenced types: BuiltinDiagnosticCode

All implemented catalogue entries.

from_canonical_name

pub fn from_canonical_name(name: &str) -> Option<BuiltinDiagnosticCode>

Referenced types: str, Option, BuiltinDiagnosticCode

Look up a built-in code without accepting prefixes or inspecting messages.

Trait Implementations

impl Clone for BuiltinDiagnosticCode

impl Clone for BuiltinDiagnosticCode

Referenced types: Clone, BuiltinDiagnosticCode

clone

fn clone(&self) -> BuiltinDiagnosticCode

Referenced types: clone, BuiltinDiagnosticCode

clone_from

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

Referenced types: clone_from

impl Debug for BuiltinDiagnosticCode

impl Debug for BuiltinDiagnosticCode

Referenced types: Debug, BuiltinDiagnosticCode

fmt

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

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

impl<'de> Deserialize<'de> for BuiltinDiagnosticCode

impl<'de> Deserialize<'de> for BuiltinDiagnosticCode

Referenced types: Deserialize, BuiltinDiagnosticCode

deserialize

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

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

impl Hash for BuiltinDiagnosticCode

impl Hash for BuiltinDiagnosticCode

Referenced types: Hash, BuiltinDiagnosticCode

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 BuiltinDiagnosticCode

impl JsonSchema for BuiltinDiagnosticCode

Referenced types: BuiltinDiagnosticCode

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 BuiltinDiagnosticCode

impl Ord for BuiltinDiagnosticCode

Referenced types: Ord, BuiltinDiagnosticCode

cmp

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

Referenced types: cmp, BuiltinDiagnosticCode, 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 BuiltinDiagnosticCode

impl PartialEq for BuiltinDiagnosticCode

Referenced types: PartialEq, BuiltinDiagnosticCode

eq

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

Referenced types: eq, BuiltinDiagnosticCode, bool

ne

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

Referenced types: ne, &Rhs, bool

impl PartialOrd for BuiltinDiagnosticCode

impl PartialOrd for BuiltinDiagnosticCode

Referenced types: PartialOrd, BuiltinDiagnosticCode

partial_cmp

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

Referenced types: partial_cmp, BuiltinDiagnosticCode, 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 BuiltinDiagnosticCode

impl Serialize for BuiltinDiagnosticCode

Referenced types: Serialize, BuiltinDiagnosticCode

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 BuiltinDiagnosticCode

impl Copy for BuiltinDiagnosticCode

Referenced types: Copy, BuiltinDiagnosticCode

impl Eq for BuiltinDiagnosticCode

impl Eq for BuiltinDiagnosticCode

Referenced types: Eq, BuiltinDiagnosticCode

impl StructuralPartialEq for BuiltinDiagnosticCode

impl StructuralPartialEq for BuiltinDiagnosticCode

Referenced types: StructuralPartialEq, BuiltinDiagnosticCode