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.

Object Safety§

This trait is not object safe.

Implementors§