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§
Sourcefn record_device<I>(inspector: &mut I, name: &str, device: &D)where
I: Inspector,
fn record_device<I>(inspector: &mut I, name: &str, device: &D)where
I: Inspector,
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
.
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.