Debian Codegraph @

src/widgets/network_graph.rs

raw symbols SCIP
1 use std::time::Instant;
2
3 use crate::components::time_series::{AutoYAxisTimeGraph, TimeseriesConfig};
4
5 pub struct NetWidgetState {
6 pub graph: AutoYAxisTimeGraph,
7 }
8
9 impl NetWidgetState {
10 pub fn init(config: TimeseriesConfig, autohide_timer: Option<Instant>) -> Self {
11 NetWidgetState {
12 graph: AutoYAxisTimeGraph::new(config, autohide_timer),
13 }
14 }
15 }