netstack3_core::inspect

Trait InspectableValue

Source
pub trait InspectableValue {
    // Required method
    fn record<I>(&self, name: &str, inspector: &mut I)
       where I: Inspector;
}
Expand description

A trait that marks a type as inspectable.

This trait is used for types that are exposed to Inspectors many times so recording them can be deduplicated.

This type differs from Inspectable in that it receives a name parameter. This is typically used for types that record a single entry.

Required Methods§

Source

fn record<I>(&self, name: &str, inspector: &mut I)
where I: Inspector,

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.

Implementors§

§

impl<A> InspectableValue for AddressMatcher<A>
where A: IpAddress,

§

impl<DeviceClass> InspectableValue for InterfaceMatcher<DeviceClass>
where DeviceClass: Debug,

Source§

impl<I> InspectableValue for Lifetime<I>
where I: Instant,

Source§

impl<I> InspectableValue for PreferredLifetime<I>
where I: Instant,

§

impl<P> InspectableValue for TransportProtocolMatcher<P>
where P: Debug,