sinf 0.1.0

Library for obtaining in-depth system information at both the hardware and software levels
Documentation
/// One reading of the traffic counters of an interface.
#[derive(Clone, Copy, Default)]
pub(crate) struct NetworkSnapshot {
    pub(crate) received: u64,
    pub(crate) transmitted: u64,
    pub(crate) packets_received: u64,
    pub(crate) packets_transmitted: u64,
    pub(crate) errors_received: u64,
    pub(crate) errors_transmitted: u64,
}

impl NetworkSnapshot {
    #[cfg(not(target_os = "ios"))]
    pub(crate) fn new(
        received: u64,
        transmitted: u64,
        packets_received: u64,
        packets_transmitted: u64,
        errors_received: u64,
        errors_transmitted: u64,
    ) -> Self {
        Self {
            received,
            transmitted,
            packets_received,
            packets_transmitted,
            errors_received,
            errors_transmitted,
        }
    }
}