Skip to navigation

Enum Resource Metric Value

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -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 ResourceMetricValue {
    Integer(u64),
    Decimal(f64),
}

Exact integral values remain integers; converted fractional values are decimals.

Variants

Integer(u64)

Integer(u64)

Integer.

Decimal(f64)

Decimal(f64)

Decimal.

Trait Implementations

impl Clone for ResourceMetricValue

impl Clone for ResourceMetricValue

clone

fn clone(&self) -> ResourceMetricValue

clone_from

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

impl Debug for ResourceMetricValue

impl Debug for ResourceMetricValue

fmt

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

impl<'de> Deserialize<'de> for ResourceMetricValue

impl<'de> Deserialize<'de> for ResourceMetricValue

deserialize

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

impl From<f64> for ResourceMetricValue

impl From<f64> for ResourceMetricValue

from

fn from(value: f64) -> ResourceMetricValue

impl From<u64> for ResourceMetricValue

impl From<u64> for ResourceMetricValue

from

fn from(value: u64) -> ResourceMetricValue

impl PartialEq<u64> for ResourceMetricValue

impl PartialEq<u64> for ResourceMetricValue

eq

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

ne

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

impl PartialEq for ResourceMetricValue

impl PartialEq for ResourceMetricValue

eq

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

ne

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

impl PartialOrd<u64> for ResourceMetricValue

impl PartialOrd<u64> for ResourceMetricValue

partial_cmp

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

lt

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

le

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

gt

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

ge

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

impl Serialize for ResourceMetricValue

impl Serialize for ResourceMetricValue

serialize

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

impl Copy for ResourceMetricValue

impl Copy for ResourceMetricValue