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.

pub struct DiagnosticReceipt {
pub submission_sequence: u64,
pub status: i32,
pub host_sequence: u64,
pub evidence: i32,
pub component: u32,
pub code_count: u32,
pub reason: String,
}

Referenced types: u64, i32, u32, String

Reports sequence consumption, admission outcome, and retained evidence disposition.

Fields

submission_sequence: u64

Sequence of the acknowledged or attributed submission; identical retries reuse it.

status: i32

Required recognized state reported by the enclosing lifecycle or admission operation.

host_sequence: u64

Host recording revision associated with accepted diagnostic evidence.

evidence: i32

Whether recorded evidence was retained, truncated, or dropped independently of accounting. This must be specified for recorded observations and unspecified for all other statuses.

component: u32

Component handle assigned to a successful component registration.

code_count: u32

Code handles are one-based positions in the admitted registration.

reason: String

Fixed safe reason, never callback error text or request content.

Implementations

impl DiagnosticReceipt

impl DiagnosticReceipt

Referenced types: DiagnosticReceipt

status

pub fn status(&self) -> DiagnosticReceiptStatus

Referenced types: DiagnosticReceiptStatus

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

set_status

pub fn set_status(&mut self, value: DiagnosticReceiptStatus)

Referenced types: DiagnosticReceiptStatus

Sets status to the provided enum value.

evidence

pub fn evidence(&self) -> DiagnosticEvidenceRetention

Referenced types: DiagnosticEvidenceRetention

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

set_evidence

pub fn set_evidence(&mut self, value: DiagnosticEvidenceRetention)

Referenced types: DiagnosticEvidenceRetention

Sets evidence to the provided enum value.

Trait Implementations

impl Clone for DiagnosticReceipt

impl Clone for DiagnosticReceipt

Referenced types: Clone, DiagnosticReceipt

clone

fn clone(&self) -> DiagnosticReceipt

Referenced types: clone, DiagnosticReceipt

clone_from

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

Referenced types: clone_from

impl Debug for DiagnosticReceipt

impl Debug for DiagnosticReceipt

Referenced types: Debug, DiagnosticReceipt

fmt

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

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

impl Default for DiagnosticReceipt

impl Default for DiagnosticReceipt

Referenced types: Default, DiagnosticReceipt

default

fn default() -> DiagnosticReceipt

Referenced types: default, DiagnosticReceipt

impl Hash for DiagnosticReceipt

impl Hash for DiagnosticReceipt

Referenced types: Hash, DiagnosticReceipt

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 DiagnosticReceipt

impl Message for DiagnosticReceipt

Referenced types: Message, DiagnosticReceipt

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 DiagnosticReceipt

impl Name for DiagnosticReceipt

Referenced types: Name, DiagnosticReceipt

NAME

const NAME: &'static str = "DiagnosticReceipt"

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 DiagnosticReceipt

impl PartialEq for DiagnosticReceipt

Referenced types: PartialEq, DiagnosticReceipt

eq

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

Referenced types: eq, DiagnosticReceipt, bool

ne

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

Referenced types: ne, &Rhs, bool

impl Eq for DiagnosticReceipt

impl Eq for DiagnosticReceipt

Referenced types: Eq, DiagnosticReceipt

impl StructuralPartialEq for DiagnosticReceipt

impl StructuralPartialEq for DiagnosticReceipt

Referenced types: StructuralPartialEq, DiagnosticReceipt