#[repr(C)]pub struct NetworkStatistics {Show 26 fields
pub rx_total_frames: u64,
pub rx_good_frames: u64,
pub rx_undersize_frames: u64,
pub rx_oversize_frames: u64,
pub rx_dropped_frames: u64,
pub rx_unicast_frames: u64,
pub rx_broadcast_frames: u64,
pub rx_multicast_frames: u64,
pub rx_crc_error_frames: u64,
pub rx_total_bytes: u64,
pub tx_total_frames: u64,
pub tx_good_frames: u64,
pub tx_undersize_frames: u64,
pub tx_oversize_frames: u64,
pub tx_dropped_frames: u64,
pub tx_unicast_frames: u64,
pub tx_broadcast_frames: u64,
pub tx_multicast_frames: u64,
pub tx_crc_error_frames: u64,
pub tx_total_bytes: u64,
pub collisions: u64,
pub unsupported_protocol: u64,
pub rx_duplicated_frames: u64,
pub rx_decrypt_error_frames: u64,
pub tx_error_frames: u64,
pub tx_retry_frames: u64,
}Expand description
Network Statistics
The description of statistics on the network with the SNP’s statistics function
is returned in this structure
Any of these statistics may or may not be available on the device. So, all the
retriever functions of the statistics return None when a statistic is not supported
Fields§
§rx_total_frames: u64§rx_good_frames: u64§rx_undersize_frames: u64§rx_oversize_frames: u64§rx_dropped_frames: u64§rx_unicast_frames: u64§rx_broadcast_frames: u64§rx_multicast_frames: u64§rx_crc_error_frames: u64§rx_total_bytes: u64§tx_total_frames: u64§tx_good_frames: u64§tx_undersize_frames: u64§tx_oversize_frames: u64§tx_dropped_frames: u64§tx_unicast_frames: u64§tx_broadcast_frames: u64§tx_multicast_frames: u64§tx_crc_error_frames: u64§tx_total_bytes: u64§collisions: u64§unsupported_protocol: u64§rx_duplicated_frames: u64§rx_decrypt_error_frames: u64§tx_error_frames: u64§tx_retry_frames: u64Implementations§
Source§impl NetworkStatistics
impl NetworkStatistics
Sourcepub const fn rx_total_frames(&self) -> Option<u64>
pub const fn rx_total_frames(&self) -> Option<u64>
The total number of frames received, including error frames and dropped frames
Sourcepub const fn rx_good_frames(&self) -> Option<u64>
pub const fn rx_good_frames(&self) -> Option<u64>
The total number of good frames received and copied into receive buffers
Sourcepub const fn rx_undersize_frames(&self) -> Option<u64>
pub const fn rx_undersize_frames(&self) -> Option<u64>
The number of frames below the minimum length for the communications device
Sourcepub const fn rx_oversize_frames(&self) -> Option<u64>
pub const fn rx_oversize_frames(&self) -> Option<u64>
The number of frames longer than the maximum length for the communications length device
Sourcepub const fn rx_dropped_frames(&self) -> Option<u64>
pub const fn rx_dropped_frames(&self) -> Option<u64>
The number of valid frames that were dropped because the receive buffers were full
Sourcepub const fn rx_unicast_frames(&self) -> Option<u64>
pub const fn rx_unicast_frames(&self) -> Option<u64>
The number of valid unicast frames received and not dropped
Sourcepub const fn rx_broadcast_frames(&self) -> Option<u64>
pub const fn rx_broadcast_frames(&self) -> Option<u64>
The number of valid broadcast frames received and not dropped
Sourcepub const fn rx_multicast_frames(&self) -> Option<u64>
pub const fn rx_multicast_frames(&self) -> Option<u64>
The number of valid multicast frames received and not dropped
Sourcepub const fn rx_crc_error_frames(&self) -> Option<u64>
pub const fn rx_crc_error_frames(&self) -> Option<u64>
Number of frames with CRC or alignment errors
Sourcepub const fn rx_total_bytes(&self) -> Option<u64>
pub const fn rx_total_bytes(&self) -> Option<u64>
The total number of bytes received including frames with errors and dropped frames
Sourcepub const fn tx_total_frames(&self) -> Option<u64>
pub const fn tx_total_frames(&self) -> Option<u64>
The total number of frames transmitted including frames with errors and dropped frames
Sourcepub const fn tx_good_frames(&self) -> Option<u64>
pub const fn tx_good_frames(&self) -> Option<u64>
The total number of valid frames transmitted and copied into receive buffers
Sourcepub const fn tx_undersize_frames(&self) -> Option<u64>
pub const fn tx_undersize_frames(&self) -> Option<u64>
The number of frames below the minimum length for the media. This would be less than 64 for Ethernet
Sourcepub const fn tx_oversize_frames(&self) -> Option<u64>
pub const fn tx_oversize_frames(&self) -> Option<u64>
The number of frames longer than the maximum length for the media. This would be 1500 for Ethernet
Sourcepub const fn tx_dropped_frames(&self) -> Option<u64>
pub const fn tx_dropped_frames(&self) -> Option<u64>
The number of valid frames that were dropped because received buffers were full
Sourcepub const fn tx_unicast_frames(&self) -> Option<u64>
pub const fn tx_unicast_frames(&self) -> Option<u64>
The number of valid unicast frames transmitted and not dropped
Sourcepub const fn tx_broadcast_frames(&self) -> Option<u64>
pub const fn tx_broadcast_frames(&self) -> Option<u64>
The number of valid broadcast frames transmitted and not dropped
Sourcepub const fn tx_multicast_frames(&self) -> Option<u64>
pub const fn tx_multicast_frames(&self) -> Option<u64>
The number of valid multicast frames transmitted and not dropped
Sourcepub const fn tx_crc_error_frames(&self) -> Option<u64>
pub const fn tx_crc_error_frames(&self) -> Option<u64>
The number of transmitted frames with CRC or alignment errors
Sourcepub const fn tx_total_bytes(&self) -> Option<u64>
pub const fn tx_total_bytes(&self) -> Option<u64>
The total number of bytes transmitted including error frames and dropped frames
Sourcepub const fn collisions(&self) -> Option<u64>
pub const fn collisions(&self) -> Option<u64>
The number of collisions detected on this subnet
Sourcepub const fn unsupported_protocol(&self) -> Option<u64>
pub const fn unsupported_protocol(&self) -> Option<u64>
The number of frames destined for unsupported protocol
Sourcepub const fn rx_duplicated_frames(&self) -> Option<u64>
pub const fn rx_duplicated_frames(&self) -> Option<u64>
The number of valid frames received that were duplicated
Sourcepub const fn rx_decrypt_error_frames(&self) -> Option<u64>
pub const fn rx_decrypt_error_frames(&self) -> Option<u64>
The number of encrypted frames received that failed to decrypt
Sourcepub const fn tx_error_frames(&self) -> Option<u64>
pub const fn tx_error_frames(&self) -> Option<u64>
The number of frames that failed to transmit after exceeding the retry limit
Sourcepub const fn tx_retry_frames(&self) -> Option<u64>
pub const fn tx_retry_frames(&self) -> Option<u64>
The number of frames that transmitted successfully after more than one attempt