Debian Codegraph @

src/collection/network.rs

raw symbols SCIP
1 //! Data collection for network usage/IO.
2
3 pub mod sysinforust-analyzer cargo bottom 0.14.9 collection/network/sysinfo/;
4 pub use selfrust-analyzer cargo bottom 0.14.9 collection/network/::sysinforust-analyzer cargo bottom 0.14.9 collection/network/sysinfo/::*;
5
6 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)]
7 /// All units in bits.
8 pub struct NetworkHarvestrust-analyzer cargo bottom 0.14.9 collection/network/NetworkHarvest# {
9 pub rxrust-analyzer cargo bottom 0.14.9 collection/network/NetworkHarvest#rx.: u64,
10 pub txrust-analyzer cargo bottom 0.14.9 collection/network/NetworkHarvest#tx.: u64,
11 pub total_rxrust-analyzer cargo bottom 0.14.9 collection/network/NetworkHarvest#total_rx.: u64,
12 pub total_txrust-analyzer cargo bottom 0.14.9 collection/network/NetworkHarvest#total_tx.: u64,
13 pub rx_packetsrust-analyzer cargo bottom 0.14.9 collection/network/NetworkHarvest#rx_packets.: u64,
14 pub tx_packetsrust-analyzer cargo bottom 0.14.9 collection/network/NetworkHarvest#tx_packets.: u64,
15 pub total_rx_packetsrust-analyzer cargo bottom 0.14.9 collection/network/NetworkHarvest#total_rx_packets.: u64,
16 pub total_tx_packetsrust-analyzer cargo bottom 0.14.9 collection/network/NetworkHarvest#total_tx_packets.: u64,
17 }
18
19 impl NetworkHarvestrust-analyzer cargo bottom 0.14.9 collection/network/NetworkHarvest# {
20 pub fn first_run_cleanuprust-analyzer cargo bottom 0.14.9 collection/network/impl#[NetworkHarvest]first_run_cleanup().(&mut self) {
21 self.rxrust-analyzer cargo bottom 0.14.9 collection/network/NetworkHarvest#rx. = 0;
22 self.txrust-analyzer cargo bottom 0.14.9 collection/network/NetworkHarvest#tx. = 0;
23 }
24 }