Debian Codegraph @

src/collection/disks/io_counters.rs

raw symbols SCIP
1 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::ffirust-analyzer cargo std https://github.com/rust-lang/rust/library/std ffi/::OsStrrust-analyzer cargo std https://github.com/rust-lang/rust/library/std ffi/os_str/OsStr#;
2
3 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:)]
4 pub struct IoCountersrust-analyzer cargo bottom 0.14.9 collection/disks/io_counters/IoCounters# {
5 namerust-analyzer cargo bottom 0.14.9 collection/disks/io_counters/IoCounters#name.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
6 read_bytesrust-analyzer cargo bottom 0.14.9 collection/disks/io_counters/IoCounters#read_bytes.: u64,
7 write_bytesrust-analyzer cargo bottom 0.14.9 collection/disks/io_counters/IoCounters#write_bytes.: u64,
8 }
9
10 impl IoCountersrust-analyzer cargo bottom 0.14.9 collection/disks/io_counters/IoCounters# {
11 pub fn newrust-analyzer cargo bottom 0.14.9 collection/disks/io_counters/impl#[IoCounters]new().(name: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, read_bytes: u64, write_bytes: u64) -> Selfrust-analyzer cargo bottom 0.14.9 collection/disks/io_counters/impl#[IoCounters] {
12 Selfrust-analyzer cargo bottom 0.14.9 collection/disks/io_counters/impl#[IoCounters] {
13 namerust-analyzer cargo bottom 0.14.9 collection/disks/io_counters/IoCounters#name.,
14 read_bytesrust-analyzer cargo bottom 0.14.9 collection/disks/io_counters/IoCounters#read_bytes.,
15 write_bytesrust-analyzer cargo bottom 0.14.9 collection/disks/io_counters/IoCounters#write_bytes.,
16 }
17 }
18
19 pub(craterust-analyzer cargo bottom 0.14.9 crate/) fn device_namerust-analyzer cargo bottom 0.14.9 collection/disks/io_counters/impl#[IoCounters]device_name().(&self) -> &OsStrrust-analyzer cargo std https://github.com/rust-lang/rust/library/std ffi/os_str/OsStr# {
20 OsStrrust-analyzer cargo std https://github.com/rust-lang/rust/library/std ffi/os_str/OsStr#::newrust-analyzer cargo std https://github.com/rust-lang/rust/library/std ffi/os_str/impl#[OsStr]new().(&self.namerust-analyzer cargo bottom 0.14.9 collection/disks/io_counters/IoCounters#name.)
21 }
22
23 pub(craterust-analyzer cargo bottom 0.14.9 crate/) fn read_bytesrust-analyzer cargo bottom 0.14.9 collection/disks/io_counters/impl#[IoCounters]read_bytes().(&self) -> u64 {
24 self.read_bytesrust-analyzer cargo bottom 0.14.9 collection/disks/io_counters/IoCounters#read_bytes.
25 }
26
27 pub(craterust-analyzer cargo bottom 0.14.9 crate/) fn write_bytesrust-analyzer cargo bottom 0.14.9 collection/disks/io_counters/impl#[IoCounters]write_bytes().(&self) -> u64 {
28 self.write_bytesrust-analyzer cargo bottom 0.14.9 collection/disks/io_counters/IoCounters#write_bytes.
29 }
30 }