Trait Inspectable

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

A trait that allows a type to record its fields to an inspector.

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

Required Methods§

Source

fn record<I>(&self, 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§

Source§

impl Inspectable for ()

Source§

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

Source§

impl Inspectable for BlackholeDeviceCounters

Source§

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

Source§

impl Inspectable for DeviceCounters

Source§

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

Source§

impl Inspectable for EthernetDeviceCounters

Source§

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

Source§

impl Inspectable for PureIpDeviceCounters

Source§

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

Source§

impl Inspectable for DeviceSocketCounters

Source§

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

Source§

impl Inspectable for IgmpCounters

Source§

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

Source§

impl Inspectable for MldCounters

Source§

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

Source§

impl<C> Inspectable for Ipv6RxCounters<C>
where C: CounterRepr,

Source§

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

Source§

impl<I> Inspectable for MulticastForwardingCounters<I>
where I: Ip,

Source§

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

Source§

impl<I> Inspectable for RawIpSocketCounters<I>
where I: Ip,

Source§

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

Source§

impl<I> Inspectable for CombinedTcpCounters<'_, I>
where I: Ip,

Source§

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

Source§

impl<I> Inspectable for CombinedUdpCounters<'_, I>
where I: Ip,

Source§

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

Source§

impl<I, A, BT> Inspectable for State<I, A, BT>

Source§

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

Source§

impl<I, C> Inspectable for IpCounters<I, C>
where I: IpCountersIpExt, C: CounterRepr,

Source§

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

Source§

impl<I, D, BT> Inspectable for MulticastForwardingPendingPackets<I, D, BT>

Source§

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

Source§

impl<I, E, BT> Inspectable for Table<I, E, BT>

Source§

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

Source§

impl<I, Inst> Inspectable for IpAddressData<I, Inst>
where I: IpDeviceStateIpExt, Inst: Instant,

Source§

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

Source§

impl<Inst> Inspectable for Ipv6AddrConfig<Inst>
where Inst: Instant,

Source§

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

Implementors§

Source§

impl Inspectable for CommonAddressConfig

Source§

impl<I> Inspectable for Tuple<I>
where I: IpExt,

Source§

impl<I> Inspectable for MulticastRouteKey<I>
where I: MulticastRouteIpExt,

Source§

impl<I, DeviceClass> Inspectable for Action<I, DeviceClass, ()>
where I: IpExt, DeviceClass: Debug,

Source§

impl<I, DeviceClass> Inspectable for Hook<I, DeviceClass, ()>
where I: IpExt, DeviceClass: Debug,

Source§

impl<I, DeviceClass> Inspectable for IpRoutines<I, DeviceClass, ()>
where I: IpExt, DeviceClass: Debug,

Source§

impl<I, DeviceClass> Inspectable for NatRoutines<I, DeviceClass, ()>
where I: IpExt, DeviceClass: Debug,

Source§

impl<I, DeviceClass> Inspectable for Routine<I, DeviceClass, ()>
where I: IpExt, DeviceClass: Debug,

Source§

impl<I, DeviceClass> Inspectable for Rule<I, DeviceClass, ()>
where I: IpExt, DeviceClass: Debug,

Source§

impl<I, DeviceClass> Inspectable for UninstalledRoutine<I, DeviceClass, ()>
where I: IpExt, DeviceClass: Debug,

Source§

impl<Inst> Inspectable for CommonAddressProperties<Inst>
where Inst: Instant,

Source§

impl<Inst> Inspectable for Ipv4AddrConfig<Inst>
where Inst: Instant,