Debian Codegraph @

src/widgets/disk_io_graph.rs

raw symbols SCIP
1 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::timerust-analyzer cargo std https://github.com/rust-lang/rust/library/std time/::Instantrust-analyzer cargo std https://github.com/rust-lang/rust/library/std time/Instant#;
2
3 use craterust-analyzer cargo bottom 0.14.9 crate/::{
4 componentsrust-analyzer cargo bottom 0.14.9 components/::time_seriesrust-analyzer cargo bottom 0.14.9 components/time_series/::{AutoYAxisTimeGraphrust-analyzer cargo bottom 0.14.9 components/time_series/auto_y/AutoYAxisTimeGraph#, TimeseriesConfigrust-analyzer cargo bottom 0.14.9 components/time_series/TimeseriesConfig#},
5 optionsrust-analyzer cargo bottom 0.14.9 options/::configrust-analyzer cargo bottom 0.14.9 options/config/::disk_io_graphrust-analyzer cargo bottom 0.14.9 options/config/disk_io_graph/::DiskGraphLegendrust-analyzer cargo bottom 0.14.9 options/config/disk_io_graph/DiskGraphLegend#,
6 };
7
8 /// Runtime state for a disk I/O graph widget.
9 pub struct DiskIoGraphWidgetStaterust-analyzer cargo bottom 0.14.9 widgets/disk_io_graph/DiskIoGraphWidgetState# {
10 /// The underlying time-series graph with automatic y-axis scaling.
11 pub graphrust-analyzer cargo bottom 0.14.9 widgets/disk_io_graph/DiskIoGraphWidgetState#graph.: AutoYAxisTimeGraphrust-analyzer cargo bottom 0.14.9 components/time_series/auto_y/AutoYAxisTimeGraph#,
12 /// Whether the read rate line is currently shown.
13 pub show_readrust-analyzer cargo bottom 0.14.9 widgets/disk_io_graph/DiskIoGraphWidgetState#show_read.: bool,
14 /// Whether the write rate line is currently shown.
15 pub show_writerust-analyzer cargo bottom 0.14.9 widgets/disk_io_graph/DiskIoGraphWidgetState#show_write.: bool,
16 /// Whether legend entries use device names or mount points.
17 pub legendrust-analyzer cargo bottom 0.14.9 widgets/disk_io_graph/DiskIoGraphWidgetState#legend.: DiskGraphLegendrust-analyzer cargo bottom 0.14.9 options/config/disk_io_graph/DiskGraphLegend#,
18 /// Whether the y-axis uses a logarithmic scale.
19 pub use_logrust-analyzer cargo bottom 0.14.9 widgets/disk_io_graph/DiskIoGraphWidgetState#use_log.: bool,
20 }
21
22 impl DiskIoGraphWidgetStaterust-analyzer cargo bottom 0.14.9 widgets/disk_io_graph/DiskIoGraphWidgetState# {
23 pub fn newrust-analyzer cargo bottom 0.14.9 widgets/disk_io_graph/impl#[DiskIoGraphWidgetState]new().(
24 config: TimeseriesConfigrust-analyzer cargo bottom 0.14.9 components/time_series/TimeseriesConfig#, autohide_timer: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Instantrust-analyzer cargo std https://github.com/rust-lang/rust/library/std time/Instant#>, show_read: bool,
25 show_write: bool, legend: DiskGraphLegendrust-analyzer cargo bottom 0.14.9 options/config/disk_io_graph/DiskGraphLegend#, use_log: bool,
26 ) -> Selfrust-analyzer cargo bottom 0.14.9 widgets/disk_io_graph/impl#[DiskIoGraphWidgetState] {
27 Selfrust-analyzer cargo bottom 0.14.9 widgets/disk_io_graph/impl#[DiskIoGraphWidgetState] {
28 graphrust-analyzer cargo bottom 0.14.9 widgets/disk_io_graph/DiskIoGraphWidgetState#graph.: AutoYAxisTimeGraphrust-analyzer cargo bottom 0.14.9 components/time_series/auto_y/AutoYAxisTimeGraph#::newrust-analyzer cargo bottom 0.14.9 components/time_series/auto_y/impl#[AutoYAxisTimeGraph]new().(config, autohide_timer),
29 show_readrust-analyzer cargo bottom 0.14.9 widgets/disk_io_graph/DiskIoGraphWidgetState#show_read.,
30 show_writerust-analyzer cargo bottom 0.14.9 widgets/disk_io_graph/DiskIoGraphWidgetState#show_write.,
31 legendrust-analyzer cargo bottom 0.14.9 widgets/disk_io_graph/DiskIoGraphWidgetState#legend.,
32 use_logrust-analyzer cargo bottom 0.14.9 widgets/disk_io_graph/DiskIoGraphWidgetState#use_log.,
33 }
34 }
35 }