DeviceCounterExpectations

Type Alias DeviceCounterExpectations 

Source
pub type DeviceCounterExpectations = DeviceCounters<u64>;
Expand description

Expected values of DeviceCounters.

Aliased Type§

pub struct DeviceCounterExpectations {
Show 14 fields pub send_total_frames: u64, pub send_frame: u64, pub send_bytes: u64, pub send_queue_full: u64, pub send_serialize_error: u64, pub recv_frame: u64, pub recv_bytes: u64, pub recv_parse_error: u64, pub recv_ipv4_delivered: u64, pub recv_ipv6_delivered: u64, pub send_ipv4_frame: u64, pub send_ipv6_frame: u64, pub send_dropped_no_queue: u64, pub send_dropped_dequeue: u64,
}

Fields§

§send_total_frames: u64

Count of outgoing frames which enter the device layer (but may or may not have been dropped prior to reaching the wire).

§send_frame: u64

Count of frames sent.

§send_bytes: u64

Count of bytes sent.

§send_queue_full: u64

Count of frames that failed to send because of a full Tx queue.

§send_serialize_error: u64

Count of frames that failed to send because of a serialization error.

§recv_frame: u64

Count of frames received.

§recv_bytes: u64

Count of bytes received.

§recv_parse_error: u64

Count of incoming frames dropped due to a parsing error.

§recv_ipv4_delivered: u64

Count of incoming frames containing an IPv4 packet delivered.

§recv_ipv6_delivered: u64

Count of incoming frames containing an IPv6 packet delivered.

§send_ipv4_frame: u64

Count of sent frames containing an IPv4 packet.

§send_ipv6_frame: u64

Count of sent frames containing an IPv6 packet.

§send_dropped_no_queue: u64

Count of frames that failed to send because there was no Tx queue.

§send_dropped_dequeue: u64

Count of frames that were dropped during Tx queue dequeuing.

Implementations§

Source§

impl DeviceCounterExpectations

Source

pub fn assert_counters<D, CC: ResourceCounterContext<D, DeviceCounters>>( &self, core_ctx: &CC, device: &D, )

Assert that the counters tracked by core_ctx match expectations.