netstack3_core::inspect

Trait InspectorDeviceExt

Source
pub trait InspectorDeviceExt<D> {
    // Required methods
    fn record_device<I>(inspector: &mut I, name: &str, device: &D)
       where I: Inspector;
    fn device_identifier_as_address_zone(device: D) -> impl Display;
}
Expand description

An extension to Inspector that allows transforming and recording device identifiers.

How to record device IDs is delegated to bindings via this trait, so we don’t need to propagate InspectableValue implementations everywhere in core unnecessarily.

Required Methods§

Source

fn record_device<I>(inspector: &mut I, name: &str, device: &D)
where I: Inspector,

Records an entry named name with value device.

Source

fn device_identifier_as_address_zone(device: D) -> impl Display

Returns the Display representation of the IPv6 scoped address zone associated with D.

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.

Implementors§