| 1 | use serderust-analyzer cargo serde 1.0.228 crate/::{Deserializerust-analyzer cargo serde_core 1.0.228 de/Deserialize#, Serializerust-analyzer cargo serde_core 1.0.228 ser/Serialize#}; |
| 2 | |
| 3 | use superrust-analyzer cargo bottom 0.14.9 options/config/::StringOrNumrust-analyzer cargo bottom 0.14.9 options/config/StringOrNum#; |
| 4 | |
| 5 | #[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:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, 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:, Serializerust-analyzer cargo serde_derive 1.0.228 Serialize:, 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:)] |
| 6 | #[cfg_attr(feature = "generate_schema", derive(schemars::JsonSchema))] |
| 7 | #[serde(rename_all = "snake_case")] |
| 8 | pub enum TableGaprust-analyzer cargo bottom 0.14.9 options/config/flags/TableGap# { |
| 9 | Nonerust-analyzer cargo bottom 0.14.9 options/config/flags/TableGap#None#, |
| 10 | #[defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/default:] |
| 11 | Spacerust-analyzer cargo bottom 0.14.9 options/config/flags/TableGap#Space#, |
| 12 | Linerust-analyzer cargo bottom 0.14.9 options/config/flags/TableGap#Line#, |
| 13 | } |
| 14 | |
| 15 | impl TableGaprust-analyzer cargo bottom 0.14.9 options/config/flags/TableGap# { |
| 16 | /// Returns the height in rows that this gap occupies. |
| 17 | pub const fn heightrust-analyzer cargo bottom 0.14.9 options/config/flags/impl#[TableGap]height().(self) -> u16 { |
| 18 | match self { |
| 19 | Selfrust-analyzer cargo bottom 0.14.9 options/config/flags/impl#[TableGap]::Nonerust-analyzer cargo bottom 0.14.9 options/config/flags/TableGap#None# => 0, |
| 20 | Selfrust-analyzer cargo bottom 0.14.9 options/config/flags/impl#[TableGap]::Spacerust-analyzer cargo bottom 0.14.9 options/config/flags/TableGap#Space# | Selfrust-analyzer cargo bottom 0.14.9 options/config/flags/impl#[TableGap]::Linerust-analyzer cargo bottom 0.14.9 options/config/flags/TableGap#Line# => 1, |
| 21 | } |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | // TODO: Break this up. |
| 26 | #[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:, Serializerust-analyzer cargo serde_derive 1.0.228 Serialize:)] |
| 27 | #[cfg_attr(feature = "generate_schema", derive(schemars::JsonSchema))] |
| 28 | #[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:))] |
| 29 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) struct GeneralConfigrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig# { |
| 30 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) dot_markerrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#dot_marker.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 31 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) raterust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#rate.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<StringOrNumrust-analyzer cargo bottom 0.14.9 options/config/StringOrNum#>, |
| 32 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) basicrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#basic.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 33 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) default_time_valuerust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#default_time_value.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<StringOrNumrust-analyzer cargo bottom 0.14.9 options/config/StringOrNum#>, |
| 34 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) time_deltarust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#time_delta.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<StringOrNumrust-analyzer cargo bottom 0.14.9 options/config/StringOrNum#>, |
| 35 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) autohide_timerust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#autohide_time.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 36 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) hide_timerust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#hide_time.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 37 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) default_widget_typerust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#default_widget_type.: 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#>, |
| 38 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) default_widget_countrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#default_widget_count.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<u64>, |
| 39 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) expandedrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#expanded.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 40 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) use_old_network_legendrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#use_old_network_legend.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 41 | #[serderust-analyzer cargo serde_derive 1.0.228 serde:(default)] |
| 42 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) table_gaprust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#table_gap.: TableGaprust-analyzer cargo bottom 0.14.9 options/config/flags/TableGap#, |
| 43 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) batteryrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#battery.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 44 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) disable_clickrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#disable_click.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 45 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) disable_keysrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#disable_keys.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 46 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) no_writerust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#no_write.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 47 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) show_table_scroll_positionrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#show_table_scroll_position.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 48 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) show_table_scroll_barrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#show_table_scroll_bar.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 49 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) read_onlyrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#read_only.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 50 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) disable_gpurust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#disable_gpu.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 51 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) retentionrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#retention.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<StringOrNumrust-analyzer cargo bottom 0.14.9 options/config/StringOrNum#>, |
| 52 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) temperature_typerust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#temperature_type.: 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#>, |
| 53 | |
| 54 | // FIXME: Deprecate these in the future. |
| 55 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) hide_avg_cpurust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#hide_avg_cpu.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 56 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) cpu_left_legendrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#cpu_left_legend.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 57 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) average_cpu_rowrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#average_cpu_row.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 58 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) enable_cache_memoryrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#enable_cache_memory.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 59 | // #[cfg(feature = "zfs")] |
| 60 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) free_arcrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#free_arc.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 61 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) network_use_bytesrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#network_use_bytes.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 62 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) network_use_logrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#network_use_log.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 63 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) network_use_binary_prefixrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#network_use_binary_prefix.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 64 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) network_legendrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#network_legend.: 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#>, |
| 65 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) memory_legendrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#memory_legend.: 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#>, |
| 66 | // #[cfg(target_os = "linux")] |
| 67 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) hide_k_threadsrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#hide_k_threads.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 68 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) tree_collapserust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#tree_collapse.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 69 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) process_commandrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#process_command.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 70 | // This does nothing on Windows, but we leave it enabled to make the config file consistent |
| 71 | // across platforms. |
| 72 | // |
| 73 | // #[cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd"))] |
| 74 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) disable_advanced_killrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#disable_advanced_kill.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 75 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) process_memory_as_valuerust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#process_memory_as_value.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 76 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) group_processesrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#group_processes.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 77 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) regexrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#regex.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 78 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) case_sensitiverust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#case_sensitive.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 79 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) whole_wordrust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#whole_word.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 80 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) treerust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#tree.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 81 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) current_usagerust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#current_usage.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 82 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) unnormalized_cpurust-analyzer cargo bottom 0.14.9 options/config/flags/GeneralConfig#unnormalized_cpu.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>, |
| 83 | } |