Skip to navigation

Struct Resource Memory View

View as Markdown

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 ResourceMemoryView {
    pub availability: i32,
    pub sample: Option<ResourceMemorySample>,
    pub association: i32,
    pub age_millis: Option<u64>,
    pub stale: bool,
    pub projection_slot_bytes: u64,
}

Typed resource memory view preserving the shared runtime fields.

Fields

availability: i32

Latest attempt availability; prior valid samples may remain after failure.

sample: Option<ResourceMemorySample>

Exact sample used for this page; may differ on the next page.

association: i32

Relation to the diagnostic source, verified without retargeting collection.

age_millis: Option<u64>

Local monotonic age since completion, not a remote wall-clock subtraction.

stale: bool

Age exceeds the resource plugin’s configured freshness threshold.

projection_slot_bytes: u64

Compiled latest-cache slot size, outside core reservation and excluding temporary copies.

Implementations

impl ResourceMemoryView

impl ResourceMemoryView

availability

pub fn availability(&self) -> ResourceMemoryAvailability

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

set_availability

pub fn set_availability(&mut self, value: ResourceMemoryAvailability)

Sets availability to the provided enum value.

association

pub fn association(&self) -> ResourceAssociation

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

set_association

pub fn set_association(&mut self, value: ResourceAssociation)

Sets association to the provided enum value.

age_millis

pub fn age_millis(&self) -> u64

Returns the value of age_millis, or the default value if age_millis is unset.

Trait Implementations

impl Clone for ResourceMemoryView

impl Clone for ResourceMemoryView

clone

fn clone(&self) -> ResourceMemoryView

clone_from

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

impl Debug for ResourceMemoryView

impl Debug for ResourceMemoryView

fmt

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

impl Default for ResourceMemoryView

impl Default for ResourceMemoryView

default

fn default() -> Self

impl Message for ResourceMemoryView

impl Message for ResourceMemoryView

encoded_len

fn encoded_len(&self) -> usize

clear

fn clear(&mut self)

encode

fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
    Self: Sized,

encode_to_vec

fn encode_to_vec(&self) -> Vec<u8> where
    Self: Sized,

encode_length_delimited

fn encode_length_delimited(
    &self,
    buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
    Self: Sized,

encode_length_delimited_to_vec

fn encode_length_delimited_to_vec(&self) -> Vec<u8> where
    Self: Sized,

decode

fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
    Self: Default,

decode_length_delimited

fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
    Self: Default,

merge

fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
    Self: Sized,

merge_length_delimited

fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
    Self: Sized,

impl Name for ResourceMemoryView

impl Name for ResourceMemoryView

NAME

const NAME: &'static str = "ResourceMemoryView"

PACKAGE

const PACKAGE: &'static str = "nvidia.nemo.relay.worker.v1"

full_name

fn full_name() -> String

type_url

fn type_url() -> String

impl PartialEq for ResourceMemoryView

impl PartialEq for ResourceMemoryView

eq

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

ne

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

impl WireValue<ResourceMemoryView> for ResourceMemoryView

impl WireValue<ResourceMemoryView> for ResourceMemoryView

to_wire

fn to_wire(self) -> Result<ResourceMemoryView>

from_wire

fn from_wire(value: ResourceMemoryView) -> Result<Self>

impl StructuralPartialEq for ResourceMemoryView

impl StructuralPartialEq for ResourceMemoryView