1
2
3
4
5
6
7
8
9
10
11
12
#[cfg(feature = "serde")]
use serde_derive::{Deserialize, Serialize};

/// Returned by `NvLink.utilization_counter()`
#[derive(Debug, Clone, Eq, PartialEq, Hash)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct UtilizationCounter {
    /// Receive counter value
    pub receive: u64,
    /// Send counter value
    pub send: u64,
}