Trait InspectorExt

Source
pub trait InspectorExt: Inspector {
    // Provided methods
    fn record_counter(&mut self, name: &str, value: &Counter) { ... }
    fn record_zoned_addr_with_port<I, A, D, P>(
        &mut self,
        name: &str,
        addr: ZonedAddr<A, D>,
        port: P,
    )
       where I: InspectorDeviceExt<D>,
             A: IpAddress,
             P: Display { ... }
    fn record_local_socket_addr<I, A, D, P>(
        &mut self,
        addr_with_port: Option<(ZonedAddr<A, D>, P)>,
    )
       where I: InspectorDeviceExt<D>,
             A: IpAddress,
             P: Display { ... }
    fn record_remote_socket_addr<I, A, D, P>(
        &mut self,
        addr_with_port: Option<(ZonedAddr<A, D>, P)>,
    )
       where I: InspectorDeviceExt<D>,
             A: IpAddress,
             P: Display { ... }
}
Expand description

Extension trait for Inspector adding support for netstack3-specific types.

Provided Methods§

Source

fn record_counter(&mut self, name: &str, value: &Counter)

Records a counter.

Source

fn record_zoned_addr_with_port<I, A, D, P>( &mut self, name: &str, addr: ZonedAddr<A, D>, port: P, )
where I: InspectorDeviceExt<D>, A: IpAddress, P: Display,

Records a ZonedAddr and it’s port, mapping the zone into an inspectable device identifier.

Source

fn record_local_socket_addr<I, A, D, P>( &mut self, addr_with_port: Option<(ZonedAddr<A, D>, P)>, )
where I: InspectorDeviceExt<D>, A: IpAddress, P: Display,

Records the local address of a socket.

Source

fn record_remote_socket_addr<I, A, D, P>( &mut self, addr_with_port: Option<(ZonedAddr<A, D>, P)>, )
where I: InspectorDeviceExt<D>, A: IpAddress, P: Display,

Records the remote address of a socket.

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§

Source§

impl<T> InspectorExt for T
where T: Inspector,