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 LogSeverity {
Unspecified = 0,
Trace = 1,
Debug = 2,
Info = 3,
Warn = 4,
Error = 5,
}

Log evidence severity; an unspecified submitted severity is invalid.

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.

Warn = 4

Warn = 4

Warning evidence without an implied failure outcome.

Error = 5

Error = 5

Error evidence; severity alone does not determine outcome.

Implementations

impl LogSeverity

impl LogSeverity

is_valid

pub fn is_valid(value: i32) -> bool

Returns true if value is a variant of LogSeverity.

from_i32

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

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

impl LogSeverity

impl LogSeverity

as_str_name

pub fn as_str_name(&self) -> &'static 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<Self>

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

Trait Implementations

impl Clone for LogSeverity

impl Clone for LogSeverity

clone

fn clone(&self) -> LogSeverity

clone_from

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

impl Debug for LogSeverity

impl Debug for LogSeverity

fmt

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

impl Default for LogSeverity

impl Default for LogSeverity

default

fn default() -> LogSeverity

impl From<LogSeverity> for i32

impl From<LogSeverity> for i32

from

fn from(value: LogSeverity) -> i32

impl Hash for LogSeverity

impl Hash for LogSeverity

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

impl Ord for LogSeverity

cmp

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

max

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

min

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

clamp

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

impl PartialEq for LogSeverity

impl PartialEq for LogSeverity

eq

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

ne

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

impl PartialOrd for LogSeverity

impl PartialOrd for LogSeverity

partial_cmp

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

lt

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

le

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

gt

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

ge

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

impl TryFrom<i32> for LogSeverity

impl TryFrom<i32> for LogSeverity

Error

type Error = UnknownEnumValue

try_from

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

impl Copy for LogSeverity

impl Copy for LogSeverity

impl Eq for LogSeverity

impl Eq for LogSeverity

impl StructuralPartialEq for LogSeverity

impl StructuralPartialEq for LogSeverity