Trait netstack3_base::InspectableValue

source ·
pub trait InspectableValue {
    // Required method
    fn record<I: Inspector>(&self, name: &str, inspector: &mut I);
}
Expand description

A trait that marks a type as inspectable.

This trait is used for types that are exposed to Inspectors many times so recording them can be deduplicated.

This type differs from Inspectable in that it receives a name parameter. This is typically used for types that record a single entry.

Required Methods§

source

fn record<I: Inspector>(&self, name: &str, inspector: &mut I)

Records this value into inspector.

Object Safety§

This trait is not object safe.

Implementors§