Struct netstack3_device::DeviceCounters
source · pub struct DeviceCounters {
pub send_total_frames: Counter,
pub send_frame: Counter,
pub send_queue_full: Counter,
pub send_serialize_error: Counter,
pub recv_frame: Counter,
pub recv_parse_error: Counter,
pub recv_ipv4_delivered: Counter,
pub recv_ipv6_delivered: Counter,
pub send_ipv4_frame: Counter,
pub send_ipv6_frame: Counter,
pub send_dropped_no_queue: Counter,
pub send_dropped_dequeue: Counter,
}
Expand description
Device layer counters.
Fields§
§send_total_frames: Counter
Count of outgoing frames which enter the device layer (but may or may not have been dropped prior to reaching the wire).
send_frame: Counter
Count of frames sent.
send_queue_full: Counter
Count of frames that failed to send because of a full Tx queue.
send_serialize_error: Counter
Count of frames that failed to send because of a serialization error.
recv_frame: Counter
Count of frames received.
recv_parse_error: Counter
Count of incoming frames dropped due to a parsing error.
recv_ipv4_delivered: Counter
Count of incoming frames containing an IPv4 packet delivered.
recv_ipv6_delivered: Counter
Count of incoming frames containing an IPv6 packet delivered.
send_ipv4_frame: Counter
Count of sent frames containing an IPv4 packet.
send_ipv6_frame: Counter
Count of sent frames containing an IPv6 packet.
send_dropped_no_queue: Counter
Count of frames that failed to send because there was no Tx queue.
send_dropped_dequeue: Counter
Count of frames that were dropped during Tx queue dequeuing.
Implementations§
source§impl DeviceCounters
impl DeviceCounters
sourcepub fn send_frame<I: Ip>(&self) -> &Counter
pub fn send_frame<I: Ip>(&self) -> &Counter
Either send_ipv4_frame
or send_ipv6_frame
depending on I
.