Skip to navigation

Struct Diagnostic Extension Definition

View as MarkdownOpen in Claude

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.

pub struct DiagnosticExtensionDefinition {
pub name: String,
pub description: String,
pub outcome: i32,
pub allowed_failure_classes: Vec<String>,
}

Referenced types: String, i32, Vec

Declares one plugin-defined diagnostic classification and its allowed causes.

Fields

name: String

Identity within the enclosing declaration; preserve its exact case and spelling.

description: String

Human-readable classification description, bounded by diagnostic admission policy.

outcome: i32

Observed operation outcome; severity does not determine success or failure.

allowed_failure_classes: Vec<String>

Admitted failure-class names for this diagnostic extension.

Implementations

impl DiagnosticExtensionDefinition

impl DiagnosticExtensionDefinition

Referenced types: DiagnosticExtensionDefinition

outcome

pub fn outcome(&self) -> DiagnosticObservationOutcome

Referenced types: DiagnosticObservationOutcome

Returns the enum value of outcome, or the default if the field is set to an invalid enum value.

set_outcome

pub fn set_outcome(&mut self, value: DiagnosticObservationOutcome)

Referenced types: DiagnosticObservationOutcome

Sets outcome to the provided enum value.

Trait Implementations

impl Clone for DiagnosticExtensionDefinition

impl Clone for DiagnosticExtensionDefinition

Referenced types: Clone, DiagnosticExtensionDefinition

clone

fn clone(&self) -> DiagnosticExtensionDefinition

Referenced types: clone, DiagnosticExtensionDefinition

clone_from

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

Referenced types: clone_from

impl Debug for DiagnosticExtensionDefinition

impl Debug for DiagnosticExtensionDefinition

Referenced types: Debug, DiagnosticExtensionDefinition

fmt

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

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

impl Default for DiagnosticExtensionDefinition

impl Default for DiagnosticExtensionDefinition

Referenced types: Default, DiagnosticExtensionDefinition

default

fn default() -> DiagnosticExtensionDefinition

Referenced types: default, DiagnosticExtensionDefinition

impl Hash for DiagnosticExtensionDefinition

impl Hash for DiagnosticExtensionDefinition

Referenced types: Hash, DiagnosticExtensionDefinition

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 Message for DiagnosticExtensionDefinition

impl Message for DiagnosticExtensionDefinition

Referenced types: Message, DiagnosticExtensionDefinition

encoded_len

fn encoded_len(&self) -> usize

Referenced types: encoded_len, usize

clear

fn clear(&mut self)

Referenced types: clear

encode

fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,

Referenced types: encode, Result, (), EncodeError, Sized

encode_to_vec

fn encode_to_vec(&self) -> Vec<u8> where
Self: Sized,

Referenced types: encode_to_vec, Vec, u8, Sized

encode_length_delimited

fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,

Referenced types: encode_length_delimited, Result, (), EncodeError, Sized

encode_length_delimited_to_vec

fn encode_length_delimited_to_vec(&self) -> Vec<u8> where
Self: Sized,

Referenced types: encode_length_delimited_to_vec, Vec, u8, Sized

decode

fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,

Referenced types: decode, Result, DecodeError, Default

decode_length_delimited

fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,

Referenced types: decode_length_delimited, Result, DecodeError, Default

merge

fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,

Referenced types: merge, Result, (), DecodeError, Sized

merge_length_delimited

fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,

Referenced types: merge_length_delimited, Result, (), DecodeError, Sized

impl Name for DiagnosticExtensionDefinition

impl Name for DiagnosticExtensionDefinition

Referenced types: Name, DiagnosticExtensionDefinition

NAME

const NAME: &'static str = "DiagnosticExtensionDefinition"

Referenced types: NAME, str

PACKAGE

const PACKAGE: &'static str = "nvidia.nemo.relay.worker.v1"

Referenced types: PACKAGE, str

full_name

fn full_name() -> String

Referenced types: full_name, String

type_url

fn type_url() -> String

Referenced types: type_url, String

impl PartialEq for DiagnosticExtensionDefinition

impl PartialEq for DiagnosticExtensionDefinition

Referenced types: PartialEq, DiagnosticExtensionDefinition

eq

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

Referenced types: eq, DiagnosticExtensionDefinition, bool

ne

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

Referenced types: ne, &Rhs, bool

impl Eq for DiagnosticExtensionDefinition

impl Eq for DiagnosticExtensionDefinition

Referenced types: Eq, DiagnosticExtensionDefinition

impl StructuralPartialEq for DiagnosticExtensionDefinition

impl StructuralPartialEq for DiagnosticExtensionDefinition

Referenced types: StructuralPartialEq, DiagnosticExtensionDefinition