netstack3_base

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Inspectable for ()

Source§

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

Implementors§