Trait netstack3_base::Inspectable

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

A trait that allows a type to record its fields to an inspector.

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

Required Methods§

source

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

Records this value into inspector.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Inspectable for ()

source§

fn record<I: Inspector>(&self, _inspector: &mut I)

Implementors§