| 1 | use serderust-analyzer cargo serde 1.0.228 crate/::Deserializerust-analyzer cargo serde_core 1.0.228 de/Deserialize#; |
| 2 | |
| 3 | use superrust-analyzer cargo bottom 0.14.9 options/config/::IgnoreListrust-analyzer cargo bottom 0.14.9 options/config/ignore_list/IgnoreList#; |
| 4 | |
| 5 | /// Network configuration. |
| 6 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(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:, Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:, Deserializerust-analyzer cargo serde_derive 1.0.228 Deserialize:)] |
| 7 | #[cfg_attr(feature = "generate_schema", derive(schemars::JsonSchema))] |
| 8 | #[cfg_attr(test, serde(deny_unknown_fields), derive(PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:))] |
| 9 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) struct NetworkGraphConfigrust-analyzer cargo bottom 0.14.9 options/config/network_graph/NetworkGraphConfig# { |
| 10 | /// A filter over the network interface names. |
| 11 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) interface_filterrust-analyzer cargo bottom 0.14.9 options/config/network_graph/NetworkGraphConfig#interface_filter.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<IgnoreListrust-analyzer cargo bottom 0.14.9 options/config/ignore_list/IgnoreList#>, |
| 12 | |
| 13 | /// Displays packet rate and average packet size info. |
| 14 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) show_packetsrust-analyzer cargo bottom 0.14.9 options/config/network_graph/NetworkGraphConfig#show_packets.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 15 | |
| 16 | // TODO: We probably want to make this an enum...? If we want to also support external legends |
| 17 | // (e.g. table-style, list-style) then we probably need a new system outright. |
| 18 | /// Where to place the legend for the network chart widget. |
| 19 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) legend_positionrust-analyzer cargo bottom 0.14.9 options/config/network_graph/NetworkGraphConfig#legend_position.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>, |
| 20 | |
| 21 | /// Displays the network widget using bytes. Defaults to bits. |
| 22 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) use_bytesrust-analyzer cargo bottom 0.14.9 options/config/network_graph/NetworkGraphConfig#use_bytes.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 23 | |
| 24 | /// Displays the network widget with a log scale. Defaults to a non-log scale. |
| 25 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) use_logrust-analyzer cargo bottom 0.14.9 options/config/network_graph/NetworkGraphConfig#use_log.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 26 | |
| 27 | /// Displays the network widget with a binary prefix (e.g. kibibits) rather than a decimal |
| 28 | /// prefix (e.g. kilobits). Defaults to decimal prefixes. |
| 29 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) use_binary_prefixrust-analyzer cargo bottom 0.14.9 options/config/network_graph/NetworkGraphConfig#use_binary_prefix.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 30 | |
| 31 | /// Zeroes out the total network usage ("All") counters so it shows the total usage |
| 32 | /// since the app is started, rather than the total usage since boot. |
| 33 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) start_zeroedrust-analyzer cargo bottom 0.14.9 options/config/network_graph/NetworkGraphConfig#start_zeroed.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 34 | } |