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 enum State {
    Absent(()),
    Value(MemoryLimitEvent),
}

Exactly one present or absent slot selection is required.

Variants

Absent(())

Absent(())

The slot is unoccupied.

Value(MemoryLimitEvent)

Value(MemoryLimitEvent)

The slot contains a reported limit event.

Implementations

impl State

impl State

encode

pub fn encode(&self, buf: &mut impl BufMut)

Encodes the message to a buffer.

merge

pub fn merge(
    field: &mut Option<State>,
    tag: u32,
    wire_type: WireType,
    buf: &mut impl Buf,
    ctx: DecodeContext,
) -> Result<(), DecodeError>

Decodes an instance of the message from a buffer, and merges it into self.

encoded_len

pub fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.

Trait Implementations

impl Clone for State

impl Clone for State

clone

fn clone(&self) -> State

clone_from

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

impl Debug for State

impl Debug for State

fmt

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

impl PartialEq for State

impl PartialEq for State

eq

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

ne

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

impl Copy for State

impl Copy for State

impl StructuralPartialEq for State

impl StructuralPartialEq for State