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§
Sourcefn record_counter(&mut self, name: &str, value: &Counter)
fn record_counter(&mut self, name: &str, value: &Counter)
Records a counter.
Sourcefn record_zoned_addr_with_port<I, A, D, P>(
&mut self,
name: &str,
addr: ZonedAddr<A, D>,
port: P,
)
fn record_zoned_addr_with_port<I, A, D, P>( &mut self, name: &str, addr: ZonedAddr<A, D>, port: P, )
Records a ZonedAddr
and it’s port, mapping the zone into an
inspectable device identifier.
Sourcefn record_local_socket_addr<I, A, D, P>(
&mut self,
addr_with_port: Option<(ZonedAddr<A, D>, P)>,
)
fn record_local_socket_addr<I, A, D, P>( &mut self, addr_with_port: Option<(ZonedAddr<A, D>, P)>, )
Records the local address of a socket.
Sourcefn record_remote_socket_addr<I, A, D, P>(
&mut self,
addr_with_port: Option<(ZonedAddr<A, D>, P)>,
)
fn record_remote_socket_addr<I, A, D, P>( &mut self, addr_with_port: Option<(ZonedAddr<A, D>, P)>, )
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.