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.

#[repr(i32)]pub enum DiagnosticObservationSeverity {
Unspecified = 0,
Trace = 1,
Debug = 2,
Info = 3,
Warning = 4,
Error = 5,
}

Evidence severity accepted by diagnostic delivery.

Variants

Unspecified = 0

Unspecified = 0

No value supplied; invalid where this contract requires an explicit value.

Trace = 1

Trace = 1

Detailed trace evidence.

Debug = 2

Debug = 2

Diagnostic evidence for debugging.

Info = 3

Info = 3

Informational evidence.

Warning = 4

Warning = 4

Warning evidence without an implied failure outcome.

Error = 5

Error = 5

Error evidence; severity alone does not determine outcome.

Implementations

impl DiagnosticObservationSeverity

impl DiagnosticObservationSeverity

Referenced types: DiagnosticObservationSeverity

is_valid

pub fn is_valid(value: i32) -> bool

Referenced types: i32, bool

Returns true if value is a variant of DiagnosticObservationSeverity.

from_i32

pub fn from_i32(value: i32) -> Option<DiagnosticObservationSeverity>

Referenced types: i32, Option, DiagnosticObservationSeverity

Converts an i32 to a DiagnosticObservationSeverity, or None if value is not a valid variant.

impl DiagnosticObservationSeverity

impl DiagnosticObservationSeverity

Referenced types: DiagnosticObservationSeverity

as_str_name

pub fn as_str_name(&self) -> &'static str

Referenced types: str

String value of the enum field names used in the ProtoBuf definition.

The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.

from_str_name

pub fn from_str_name(value: &str) -> Option<DiagnosticObservationSeverity>

Referenced types: str, Option, DiagnosticObservationSeverity

Creates an enum from field names used in the ProtoBuf definition.

Trait Implementations

impl Clone for DiagnosticObservationSeverity

impl Clone for DiagnosticObservationSeverity

Referenced types: Clone, DiagnosticObservationSeverity

clone

fn clone(&self) -> DiagnosticObservationSeverity

Referenced types: clone, DiagnosticObservationSeverity

clone_from

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

Referenced types: clone_from

impl Debug for DiagnosticObservationSeverity

impl Debug for DiagnosticObservationSeverity

Referenced types: Debug, DiagnosticObservationSeverity

fmt

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

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

impl Default for DiagnosticObservationSeverity

impl Default for DiagnosticObservationSeverity

Referenced types: Default, DiagnosticObservationSeverity

default

fn default() -> DiagnosticObservationSeverity

Referenced types: default, DiagnosticObservationSeverity

impl Hash for DiagnosticObservationSeverity

impl Hash for DiagnosticObservationSeverity

Referenced types: Hash, DiagnosticObservationSeverity

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 Ord for DiagnosticObservationSeverity

impl Ord for DiagnosticObservationSeverity

Referenced types: Ord, DiagnosticObservationSeverity

cmp

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

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

impl PartialEq for DiagnosticObservationSeverity

Referenced types: PartialEq, DiagnosticObservationSeverity

eq

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

Referenced types: eq, DiagnosticObservationSeverity, bool

ne

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

Referenced types: ne, &Rhs, bool

impl PartialOrd for DiagnosticObservationSeverity

impl PartialOrd for DiagnosticObservationSeverity

Referenced types: PartialOrd, DiagnosticObservationSeverity

partial_cmp

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

Referenced types: partial_cmp, DiagnosticObservationSeverity, 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 TryFrom<i32> for DiagnosticObservationSeverity

impl TryFrom<i32> for DiagnosticObservationSeverity

Referenced types: TryFrom, i32, DiagnosticObservationSeverity

Error

type Error = UnknownEnumValue

Referenced types: Error, UnknownEnumValue

try_from

fn try_from(
value: i32,
) -> Result<DiagnosticObservationSeverity, UnknownEnumValue>

Referenced types: try_from, i32, Result, DiagnosticObservationSeverity, UnknownEnumValue

impl Copy for DiagnosticObservationSeverity

impl Copy for DiagnosticObservationSeverity

Referenced types: Copy, DiagnosticObservationSeverity

impl Eq for DiagnosticObservationSeverity

impl Eq for DiagnosticObservationSeverity

Referenced types: Eq, DiagnosticObservationSeverity

impl StructuralPartialEq for DiagnosticObservationSeverity

impl StructuralPartialEq for DiagnosticObservationSeverity

Referenced types: StructuralPartialEq, DiagnosticObservationSeverity