Trait netstack3_base::InspectorDeviceExt
source · pub trait InspectorDeviceExt<D> {
// Required methods
fn record_device<I: Inspector>(inspector: &mut I, name: &str, device: &D);
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§
sourcefn record_device<I: Inspector>(inspector: &mut I, name: &str, device: &D)
fn record_device<I: Inspector>(inspector: &mut I, name: &str, device: &D)
Records an entry named name
with value device
.
sourcefn device_identifier_as_address_zone(device: D) -> impl Display
fn device_identifier_as_address_zone(device: D) -> impl Display
Returns the Display
representation of the IPv6 scoped address zone
associated with D
.
Object Safety§
This trait is not object safe.