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 DiagnosticCount {
pub value: DiagnosticNumber,
pub saturated: bool,
}

Referenced types: DiagnosticNumber, bool

Magnitude of an occurrence or loss counter, including overflow visibility.

Fields

value: DiagnosticNumber

Exact count unless saturation has occurred.

saturated: bool

Whether an overflowing increment made the value a lower bound.

Implementations

impl DiagnosticCount

impl DiagnosticCount

Referenced types: DiagnosticCount

add

pub fn add(&mut self, amount: u64)

Referenced types: u64

Add occurrences, preserving overflow as an explicit lower-bound marker.

Trait Implementations

impl Clone for DiagnosticCount

impl Clone for DiagnosticCount

Referenced types: Clone, DiagnosticCount

clone

fn clone(&self) -> DiagnosticCount

Referenced types: clone, DiagnosticCount

clone_from

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

Referenced types: clone_from

impl Debug for DiagnosticCount

impl Debug for DiagnosticCount

Referenced types: Debug, DiagnosticCount

fmt

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

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

impl Default for DiagnosticCount

impl Default for DiagnosticCount

Referenced types: Default, DiagnosticCount

default

fn default() -> DiagnosticCount

Referenced types: default, DiagnosticCount

impl<'de> Deserialize<'de> for DiagnosticCount

impl<'de> Deserialize<'de> for DiagnosticCount

Referenced types: Deserialize, DiagnosticCount

deserialize

fn deserialize<__D>(
__deserializer: __D,
) -> Result<DiagnosticCount, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,

Referenced types: deserialize, Result, DiagnosticCount, Deserializer, Error

impl JsonSchema for DiagnosticCount

impl JsonSchema for DiagnosticCount

Referenced types: DiagnosticCount

schema_name

fn schema_name() -> String

Referenced types: String

schema_id

fn schema_id() -> Cow<'static, str>

Referenced types: Cow, str

json_schema

fn json_schema(generator: &mut SchemaGenerator) -> Schema

is_referenceable

fn is_referenceable() -> bool

Referenced types: bool

impl PartialEq for DiagnosticCount

impl PartialEq for DiagnosticCount

Referenced types: PartialEq, DiagnosticCount

eq

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

Referenced types: eq, DiagnosticCount, bool

ne

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

Referenced types: ne, &Rhs, bool

impl Serialize for DiagnosticCount

impl Serialize for DiagnosticCount

Referenced types: Serialize, DiagnosticCount

serialize

fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,

Referenced types: serialize, Result, Serializer, Ok, Error

impl WireValue<Box<DiagnosticCount>> for DiagnosticCount

impl WireValue<Box<DiagnosticCount>> for DiagnosticCount

Referenced types: WireValue, Box, DiagnosticCount, DiagnosticCount

to_wire

fn to_wire(self) -> Result<Box<DiagnosticCount>, ConversionError>

Referenced types: to_wire, Result, Box, DiagnosticCount, ConversionError

from_wire

fn from_wire(
value: Box<DiagnosticCount>,
) -> Result<DiagnosticCount, ConversionError>

Referenced types: from_wire, Box, DiagnosticCount, Result, DiagnosticCount, ConversionError

impl WireValue<DiagnosticCount> for DiagnosticCount

impl WireValue<DiagnosticCount> for DiagnosticCount

Referenced types: WireValue, DiagnosticCount, DiagnosticCount

to_wire

fn to_wire(self) -> Result<DiagnosticCount, ConversionError>

Referenced types: to_wire, Result, DiagnosticCount, ConversionError

from_wire

fn from_wire(value: DiagnosticCount) -> Result<DiagnosticCount, ConversionError>

Referenced types: from_wire, DiagnosticCount, Result, DiagnosticCount, ConversionError

impl Copy for DiagnosticCount

impl Copy for DiagnosticCount

Referenced types: Copy, DiagnosticCount

impl Eq for DiagnosticCount

impl Eq for DiagnosticCount

Referenced types: Eq, DiagnosticCount

impl StructuralPartialEq for DiagnosticCount

impl StructuralPartialEq for DiagnosticCount

Referenced types: StructuralPartialEq, DiagnosticCount