Skip to navigation

Enum Resource Observation

View as Markdown

Generated from cargo doc --no-deps -p nemo-fabric-core.

pub enum ResourceObservation {
    NotCollected,
    Available {
        snapshot: RuntimeResourceSnapshot,
    },
    Unavailable {
        reason: String,
    },
    Unsupported {
        reason: String,
    },
}

One attempt to observe the adapter host process tree. Missing readings are explicit; an unavailable observation never stands for zero resource usage.

Variants

NotCollected

NotCollected

The process group was explicitly excluded from collection.

Available

Available

The process tree was read successfully.

Fields

snapshot: RuntimeResourceSnapshot

Timestamped cumulative counters and instantaneous gauges.

Unavailable

Unavailable

The reader supports this runtime, but could not read its process tree.

Fields

reason: String

Why this observation could not be collected.

Unsupported

Unsupported

The runtime’s provider or operating system has no reader.

Fields

reason: String

Which collection capability is missing.

Trait Implementations

impl Clone for ResourceObservation

impl Clone for ResourceObservation

clone

fn clone(&self) -> ResourceObservation

clone_from

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

impl Debug for ResourceObservation

impl Debug for ResourceObservation

fmt

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

impl<'de> Deserialize<'de> for ResourceObservation

impl<'de> Deserialize<'de> for ResourceObservation

deserialize

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

impl JsonSchema for ResourceObservation

impl JsonSchema for ResourceObservation

schema_name

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

schema_id

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

json_schema

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

inline_schema

fn inline_schema() -> bool

impl PartialEq for ResourceObservation

impl PartialEq for ResourceObservation

eq

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

ne

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

impl Serialize for ResourceObservation

impl Serialize for ResourceObservation

serialize

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

impl StructuralPartialEq for ResourceObservation

impl StructuralPartialEq for ResourceObservation