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 DiagnosticEvidenceRetention {
Unspecified = 0,
Retained = 1,
Truncated = 2,
Dropped = 3,
}

Evidence retention disposition, independent of occurrence accounting.

Variants

Unspecified = 0

Unspecified = 0

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

Retained = 1

Retained = 1

Requested evidence was retained.

Truncated = 2

Truncated = 2

Evidence was retained with bounded truncation.

Dropped = 3

Dropped = 3

Evidence was omitted while accepted accounting remains available.

Implementations

impl DiagnosticEvidenceRetention

impl DiagnosticEvidenceRetention

Referenced types: DiagnosticEvidenceRetention

is_valid

pub fn is_valid(value: i32) -> bool

Referenced types: i32, bool

Returns true if value is a variant of DiagnosticEvidenceRetention.

from_i32

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

Referenced types: i32, Option, DiagnosticEvidenceRetention

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

impl DiagnosticEvidenceRetention

impl DiagnosticEvidenceRetention

Referenced types: DiagnosticEvidenceRetention

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<DiagnosticEvidenceRetention>

Referenced types: str, Option, DiagnosticEvidenceRetention

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

Trait Implementations

impl Clone for DiagnosticEvidenceRetention

impl Clone for DiagnosticEvidenceRetention

Referenced types: Clone, DiagnosticEvidenceRetention

clone

fn clone(&self) -> DiagnosticEvidenceRetention

Referenced types: clone, DiagnosticEvidenceRetention

clone_from

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

Referenced types: clone_from

impl Debug for DiagnosticEvidenceRetention

impl Debug for DiagnosticEvidenceRetention

Referenced types: Debug, DiagnosticEvidenceRetention

fmt

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

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

impl Default for DiagnosticEvidenceRetention

impl Default for DiagnosticEvidenceRetention

Referenced types: Default, DiagnosticEvidenceRetention

default

fn default() -> DiagnosticEvidenceRetention

Referenced types: default, DiagnosticEvidenceRetention

impl Hash for DiagnosticEvidenceRetention

impl Hash for DiagnosticEvidenceRetention

Referenced types: Hash, DiagnosticEvidenceRetention

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 DiagnosticEvidenceRetention

impl Ord for DiagnosticEvidenceRetention

Referenced types: Ord, DiagnosticEvidenceRetention

cmp

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

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

impl PartialEq for DiagnosticEvidenceRetention

Referenced types: PartialEq, DiagnosticEvidenceRetention

eq

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

Referenced types: eq, DiagnosticEvidenceRetention, bool

ne

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

Referenced types: ne, &Rhs, bool

impl PartialOrd for DiagnosticEvidenceRetention

impl PartialOrd for DiagnosticEvidenceRetention

Referenced types: PartialOrd, DiagnosticEvidenceRetention

partial_cmp

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

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

impl TryFrom<i32> for DiagnosticEvidenceRetention

Referenced types: TryFrom, i32, DiagnosticEvidenceRetention

Error

type Error = UnknownEnumValue

Referenced types: Error, UnknownEnumValue

try_from

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

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

impl Copy for DiagnosticEvidenceRetention

impl Copy for DiagnosticEvidenceRetention

Referenced types: Copy, DiagnosticEvidenceRetention

impl Eq for DiagnosticEvidenceRetention

impl Eq for DiagnosticEvidenceRetention

Referenced types: Eq, DiagnosticEvidenceRetention

impl StructuralPartialEq for DiagnosticEvidenceRetention

impl StructuralPartialEq for DiagnosticEvidenceRetention

Referenced types: StructuralPartialEq, DiagnosticEvidenceRetention