InspectableValue

Trait InspectableValue 

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§

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.

Implementations on Foreign Types§

§

impl InspectableValue for Infallible

§

fn record<I>(&self, _name: &str, _inspector: &mut I)
where I: Inspector,

Source§

impl InspectableValue for FakeInstant

Source§

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

Source§

impl<A, T> InspectableValue for MulticastGroupSet<A, T>
where A: IpAddress,

Source§

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

Source§

impl<I, BT> InspectableValue for WeakAddressId<I, BT>

Source§

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

Source§

impl<T> InspectableValue for FakeWeakAddressId<T>

Source§

fn record<I>(&self, _name: &str, _inspector: &mut I)
where I: Inspector,

§

impl<V> InspectableValue for Arc<V>

§

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

Implementors§

Source§

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

Source§

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

Source§

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,

Source§

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