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 DiagnosticReceiptStatus {
Unspecified = 0,
Recorded = 1,
Disabled = 2,
Rejected = 3,
Registered = 4,
Closed = 5,
}

Terminal admission outcome for an ordered diagnostic submission.

Variants

Unspecified = 0

Unspecified = 0

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

Recorded = 1

Recorded = 1

Occurrence accounting was committed.

Disabled = 2

Disabled = 2

Collection is disabled; no evidence is recorded.

Rejected = 3

Rejected = 3

An admitted operation was rejected and its sequence consumed.

Registered = 4

Registered = 4

Component registration and code handles were admitted.

Closed = 5

Closed = 5

The selected component or session was closed.

Implementations

impl DiagnosticReceiptStatus

impl DiagnosticReceiptStatus

Referenced types: DiagnosticReceiptStatus

is_valid

pub fn is_valid(value: i32) -> bool

Referenced types: i32, bool

Returns true if value is a variant of DiagnosticReceiptStatus.

from_i32

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

Referenced types: i32, Option, DiagnosticReceiptStatus

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

impl DiagnosticReceiptStatus

impl DiagnosticReceiptStatus

Referenced types: DiagnosticReceiptStatus

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

Referenced types: str, Option, DiagnosticReceiptStatus

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

Trait Implementations

impl Clone for DiagnosticReceiptStatus

impl Clone for DiagnosticReceiptStatus

Referenced types: Clone, DiagnosticReceiptStatus

clone

fn clone(&self) -> DiagnosticReceiptStatus

Referenced types: clone, DiagnosticReceiptStatus

clone_from

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

Referenced types: clone_from

impl Debug for DiagnosticReceiptStatus

impl Debug for DiagnosticReceiptStatus

Referenced types: Debug, DiagnosticReceiptStatus

fmt

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

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

impl Default for DiagnosticReceiptStatus

impl Default for DiagnosticReceiptStatus

Referenced types: Default, DiagnosticReceiptStatus

default

fn default() -> DiagnosticReceiptStatus

Referenced types: default, DiagnosticReceiptStatus

impl Hash for DiagnosticReceiptStatus

impl Hash for DiagnosticReceiptStatus

Referenced types: Hash, DiagnosticReceiptStatus

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 DiagnosticReceiptStatus

impl Ord for DiagnosticReceiptStatus

Referenced types: Ord, DiagnosticReceiptStatus

cmp

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

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

impl PartialEq for DiagnosticReceiptStatus

Referenced types: PartialEq, DiagnosticReceiptStatus

eq

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

Referenced types: eq, DiagnosticReceiptStatus, bool

ne

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

Referenced types: ne, &Rhs, bool

impl PartialOrd for DiagnosticReceiptStatus

impl PartialOrd for DiagnosticReceiptStatus

Referenced types: PartialOrd, DiagnosticReceiptStatus

partial_cmp

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

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

impl TryFrom<i32> for DiagnosticReceiptStatus

Referenced types: TryFrom, i32, DiagnosticReceiptStatus

Error

type Error = UnknownEnumValue

Referenced types: Error, UnknownEnumValue

try_from

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

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

impl Copy for DiagnosticReceiptStatus

impl Copy for DiagnosticReceiptStatus

Referenced types: Copy, DiagnosticReceiptStatus

impl Eq for DiagnosticReceiptStatus

impl Eq for DiagnosticReceiptStatus

Referenced types: Eq, DiagnosticReceiptStatus

impl StructuralPartialEq for DiagnosticReceiptStatus

impl StructuralPartialEq for DiagnosticReceiptStatus

Referenced types: StructuralPartialEq, DiagnosticReceiptStatus