Struct canadensis_data_types::uavcan::node::get_transport_statistics_0_1::GetTransportStatisticsResponse
source · pub struct GetTransportStatisticsResponse {
pub transfer_statistics: IOStatistics,
pub network_interface_statistics: Vec<IOStatistics, 3>,
}
Expand description
uavcan.node.GetTransportStatistics.0.1
Size ranges from 16 to 61 bytes
Fields§
§transfer_statistics: IOStatistics
Cyphal transfer performance statistics: the number of Cyphal transfers successfully sent, successfully received, and failed. The methods of error counting are implementation-defined.
uavcan.node.IOStatistics.0.1
Always aligned, size 120 bits
network_interface_statistics: Vec<IOStatistics, 3>
Network interface statistics, separate per interface. E.g., for a doubly redundant transport, this array would contain two elements, the one at the index zero would apply to the first interface, the other to the second interface. The methods of counting are implementation-defined. One CAN FD frame
uavcan.node.IOStatistics.0.1[<=3]
Always aligned, size ranges from 0 to 360 bits
Implementations§
source§impl GetTransportStatisticsResponse
impl GetTransportStatisticsResponse
sourcepub const MAX_NETWORK_INTERFACES: u8 = 3u8
pub const MAX_NETWORK_INTERFACES: u8 = 3u8
Cyphal supports up to triply modular redundant interfaces.
Trait Implementations§
source§impl DataType for GetTransportStatisticsResponse
impl DataType for GetTransportStatisticsResponse
source§const EXTENT_BYTES: Option<u32> = _
const EXTENT_BYTES: Option<u32> = _
This type is delimited with an extent of 192 bytes.
source§impl Deserialize for GetTransportStatisticsResponse
impl Deserialize for GetTransportStatisticsResponse
source§fn deserialize(cursor: &mut ReadCursor<'_>) -> Result<Self, DeserializeError>where
Self: Sized,
fn deserialize(cursor: &mut ReadCursor<'_>) -> Result<Self, DeserializeError>where Self: Sized,
source§fn deserialize_from_bytes(bytes: &[u8]) -> Result<Self, DeserializeError>where
Self: Sized,
fn deserialize_from_bytes(bytes: &[u8]) -> Result<Self, DeserializeError>where Self: Sized,
deserialize
source§impl Serialize for GetTransportStatisticsResponse
impl Serialize for GetTransportStatisticsResponse
source§fn size_bits(&self) -> usize
fn size_bits(&self) -> usize
source§fn serialize(&self, cursor: &mut WriteCursor<'_>)
fn serialize(&self, cursor: &mut WriteCursor<'_>)
source§fn serialize_to_bytes(&self, bytes: &mut [u8])
fn serialize_to_bytes(&self, bytes: &mut [u8])
serialize