| 1 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::{borrowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/::Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#, cmprust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/::Reverserust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Reverse#}; |
| 2 | |
| 3 | use serderust-analyzer cargo serde 1.0.228 crate/::Deserializerust-analyzer cargo serde_core 1.0.228 de/Deserialize#; |
| 4 | |
| 5 | use superrust-analyzer cargo bottom 0.14.9 widgets/process_table/::{ProcWidgetColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#, ProcWidgetDatarust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#}; |
| 6 | use craterust-analyzer cargo bottom 0.14.9 crate/::{ |
| 7 | canvasrust-analyzer cargo bottom 0.14.9 canvas/::componentsrust-analyzer cargo bottom 0.14.9 canvas/components/::data_tablerust-analyzer cargo bottom 0.14.9 canvas/components/data_table/::{ColumnHeaderrust-analyzer cargo bottom 0.14.9 canvas/components/data_table/column/ColumnHeader#, SortsRowrust-analyzer cargo bottom 0.14.9 canvas/components/data_table/sortable/SortsRow#}, |
| 8 | utilsrust-analyzer cargo bottom 0.14.9 utils/::generalrust-analyzer cargo bottom 0.14.9 utils/general/::sort_partial_fnrust-analyzer cargo bottom 0.14.9 utils/general/sort_partial_fn()., |
| 9 | }; |
| 10 | |
| 11 | /// A column in the process widget. |
| 12 | #[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:, 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:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Hashrust-analyzer cargo core https://github.com/rust-lang/rust/library/core hash/macros/Hash:)] |
| 13 | #[cfg_attr( |
| 14 | feature = "generate_schema", |
| 15 | derive(schemars::JsonSchema, strum::VariantArray) |
| 16 | )] |
| 17 | pub enum ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn# { |
| 18 | CpuPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#CpuPercent#, |
| 19 | MemValuerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#MemValue#, |
| 20 | MemPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#MemPercent#, |
| 21 | VirtualMemrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#VirtualMem#, |
| 22 | Pidrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Pid#, |
| 23 | Countrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Count#, |
| 24 | Namerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Name#, |
| 25 | Commandrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Command#, |
| 26 | ReadPerSecondrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#ReadPerSecond#, |
| 27 | WritePerSecondrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#WritePerSecond#, |
| 28 | TotalReadrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#TotalRead#, |
| 29 | TotalWriterust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#TotalWrite#, |
| 30 | Staterust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#State#, |
| 31 | Userrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#User#, |
| 32 | Timerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Time#, |
| 33 | #[cfg(unix)] |
| 34 | Nicerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Nice#, |
| 35 | Priorityrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Priority#, |
| 36 | #[cfg(feature = "gpu")] |
| 37 | GpuMemValuerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#GpuMemValue#, |
| 38 | #[cfg(feature = "gpu")] |
| 39 | GpuMemPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#GpuMemPercent#, |
| 40 | #[cfg(feature = "gpu")] |
| 41 | GpuUtilPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#GpuUtilPercent#, |
| 42 | } |
| 43 | |
| 44 | impl ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn# { |
| 45 | /// An ugly hack to generate the JSON schema. |
| 46 | #[cfg(feature = "generate_schema")] |
| 47 | pub fn get_schema_names(&self) -> &[&'static str] { |
| 48 | match selfrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ { |
| 49 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Pidrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Pid# => &["PID"], |
| 50 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Countrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Count# => &["Count"], |
| 51 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Namerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Name# => &["Name"], |
| 52 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Commandrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Command# => &["Command"], |
| 53 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::CpuPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#CpuPercent# => &["CPU%"], |
| 54 | // TODO: Change this |
| 55 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::MemValuerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#MemValue# | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::MemPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#MemPercent# => &["Mem", "Mem%", "Memory", "Memory%"], |
| 56 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::VirtualMemrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#VirtualMem# => &["Virt", "Virtual", "VirtMem", "Virtual Memory"], |
| 57 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::ReadPerSecondrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#ReadPerSecond# => &["R/s", "Read", "Rps"], |
| 58 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::WritePerSecondrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#WritePerSecond# => &["W/s", "Write", "Wps"], |
| 59 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::TotalReadrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#TotalRead# => &["T.Read", "TRead", "Total Read"], |
| 60 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::TotalWriterust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#TotalWrite# => &["T.Write", "TWrite", "Total Write"], |
| 61 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Staterust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#State# => &["State"], |
| 62 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Userrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#User# => &["User"], |
| 63 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Timerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Time# => &["Time"], |
| 64 | #[cfg(feature = "gpu")] |
| 65 | // TODO: Change this |
| 66 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::GpuMemValuerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#GpuMemValue# | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::GpuMemPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#GpuMemPercent# => &["GMem", "GMem%"], |
| 67 | #[cfg(feature = "gpu")] |
| 68 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::GpuUtilPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#GpuUtilPercent# => &["GPU%"], |
| 69 | #[cfg(unix)] |
| 70 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Nicerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Nice# => &["Nice"], |
| 71 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Priorityrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Priority# => &["Priority"], |
| 72 | } |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | impl ColumnHeaderrust-analyzer cargo bottom 0.14.9 canvas/components/data_table/column/ColumnHeader# for ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn# { |
| 77 | fn textrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/impl#[ProcColumn][ColumnHeader]text().(&self) -> Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#<'static, str> { |
| 78 | match self { |
| 79 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::CpuPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#CpuPercent# => "CPU%", |
| 80 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::MemValuerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#MemValue# => "Mem", |
| 81 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::MemPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#MemPercent# => "Mem%", |
| 82 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::VirtualMemrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#VirtualMem# => "Virt", |
| 83 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Pidrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Pid# => "PID", |
| 84 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Countrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Count# => "Count", |
| 85 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Namerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Name# => "Name", |
| 86 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Commandrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Command# => "Command", |
| 87 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::ReadPerSecondrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#ReadPerSecond# => "R/s", |
| 88 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::WritePerSecondrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#WritePerSecond# => "W/s", |
| 89 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::TotalReadrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#TotalRead# => "T.Read", |
| 90 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::TotalWriterust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#TotalWrite# => "T.Write", |
| 91 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Staterust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#State# => "State", |
| 92 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Userrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#User# => "User", |
| 93 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Timerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Time# => "Time", |
| 94 | #[cfg(unix)] |
| 95 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Nicerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Nice# => "Nice", |
| 96 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Priorityrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Priority# => "Priority", |
| 97 | #[cfg(feature = "gpu")] |
| 98 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::GpuMemValuerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#GpuMemValue# => "GMem", |
| 99 | #[cfg(feature = "gpu")] |
| 100 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::GpuMemPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#GpuMemPercent# => "GMem%", |
| 101 | #[cfg(feature = "gpu")] |
| 102 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::GpuUtilPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#GpuUtilPercent# => "GPU%", |
| 103 | } |
| 104 | .intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().() |
| 105 | } |
| 106 | |
| 107 | fn headerrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/impl#[ProcColumn][ColumnHeader]header().(&self) -> Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#<'static, str> { |
| 108 | match self { |
| 109 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::CpuPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#CpuPercent# => "CPU%(c)".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 110 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::MemValuerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#MemValue# => "Mem(m)".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 111 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::MemPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#MemPercent# => "Mem%(m)".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 112 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Pidrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Pid# => "PID(p)".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 113 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Namerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Name# => "Name(n)".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 114 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Commandrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Command# => "Command(n)".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 115 | #[cfg(unix)] |
| 116 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Nicerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Nice# => "Nice".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 117 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Priorityrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Priority# => "Priority".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 118 | _ => self.textrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/impl#[ProcColumn][ColumnHeader]text().(), |
| 119 | } |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | impl SortsRowrust-analyzer cargo bottom 0.14.9 canvas/components/data_table/sortable/SortsRow# for ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn# { |
| 124 | type DataTyperust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/impl#[ProcColumn][SortsRow]DataType# = ProcWidgetDatarust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#; |
| 125 | |
| 126 | fn sort_datarust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/impl#[ProcColumn][SortsRow]sort_data().(&self, data: &mut [ProcWidgetDatarust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#], descending: bool) { |
| 127 | match self { |
| 128 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::CpuPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#CpuPercent# => { |
| 129 | data.sort_byrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/impl#[`[T]`]sort_by().(|a, b| { |
| 130 | sort_partial_fnrust-analyzer cargo bottom 0.14.9 utils/general/sort_partial_fn().(descending)(a.cpu_usage_percentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#cpu_usage_percent., b.cpu_usage_percentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#cpu_usage_percent.) |
| 131 | }); |
| 132 | } |
| 133 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::MemValuerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#MemValue# | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::MemPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#MemPercent# => { |
| 134 | data.sort_byrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/impl#[`[T]`]sort_by().(|a, b| sort_partial_fnrust-analyzer cargo bottom 0.14.9 utils/general/sort_partial_fn().(descending)(&a.mem_usagerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#mem_usage., &b.mem_usagerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#mem_usage.)); |
| 135 | } |
| 136 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::VirtualMemrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#VirtualMem# => { |
| 137 | data.sort_byrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/impl#[`[T]`]sort_by().(|a, b| sort_partial_fnrust-analyzer cargo bottom 0.14.9 utils/general/sort_partial_fn().(descending)(&a.virtual_memrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#virtual_mem., &b.virtual_memrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#virtual_mem.)); |
| 138 | } |
| 139 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Pidrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Pid# => { |
| 140 | data.sort_byrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/impl#[`[T]`]sort_by().(|a, b| sort_partial_fnrust-analyzer cargo bottom 0.14.9 utils/general/sort_partial_fn().(descending)(a.pidrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#pid., b.pidrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#pid.)); |
| 141 | } |
| 142 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Countrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Count# => { |
| 143 | data.sort_byrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/impl#[`[T]`]sort_by().(|a, b| sort_partial_fnrust-analyzer cargo bottom 0.14.9 utils/general/sort_partial_fn().(descending)(a.num_similarrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#num_similar., b.num_similarrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#num_similar.)); |
| 144 | } |
| 145 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Namerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Name# | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Commandrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Command# => { |
| 146 | if descending { |
| 147 | data.sort_by_cached_keyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/impl#[`[T]`]sort_by_cached_key().(|pd| Reverserust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Reverse#(pd.idrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#id..to_lowercaserust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/impl#[Id]to_lowercase().())); |
| 148 | } else { |
| 149 | data.sort_by_cached_keyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/impl#[`[T]`]sort_by_cached_key().(|pd| pd.idrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#id..to_lowercaserust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/impl#[Id]to_lowercase().()); |
| 150 | } |
| 151 | } |
| 152 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::ReadPerSecondrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#ReadPerSecond# => { |
| 153 | data.sort_byrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/impl#[`[T]`]sort_by().(|a, b| sort_partial_fnrust-analyzer cargo bottom 0.14.9 utils/general/sort_partial_fn().(descending)(a.rpsrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#rps., b.rpsrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#rps.)); |
| 154 | } |
| 155 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::WritePerSecondrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#WritePerSecond# => { |
| 156 | data.sort_byrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/impl#[`[T]`]sort_by().(|a, b| sort_partial_fnrust-analyzer cargo bottom 0.14.9 utils/general/sort_partial_fn().(descending)(a.wpsrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#wps., b.wpsrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#wps.)); |
| 157 | } |
| 158 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::TotalReadrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#TotalRead# => { |
| 159 | data.sort_byrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/impl#[`[T]`]sort_by().(|a, b| sort_partial_fnrust-analyzer cargo bottom 0.14.9 utils/general/sort_partial_fn().(descending)(a.total_readrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#total_read., b.total_readrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#total_read.)); |
| 160 | } |
| 161 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::TotalWriterust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#TotalWrite# => { |
| 162 | data.sort_byrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/impl#[`[T]`]sort_by().(|a, b| sort_partial_fnrust-analyzer cargo bottom 0.14.9 utils/general/sort_partial_fn().(descending)(a.total_writerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#total_write., b.total_writerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#total_write.)); |
| 163 | } |
| 164 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Staterust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#State# => { |
| 165 | if descending { |
| 166 | data.sort_by_cached_keyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/impl#[`[T]`]sort_by_cached_key().(|pd| Reverserust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Reverse#(pd.process_staterust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#process_state.)); |
| 167 | } else { |
| 168 | data.sort_by_cached_keyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/impl#[`[T]`]sort_by_cached_key().(|pd| pd.process_staterust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#process_state.); |
| 169 | } |
| 170 | } |
| 171 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Userrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#User# => { |
| 172 | // FIXME: Is there a better way here to keep the to_lowercase? Usually it |
| 173 | // shouldn't matter but... |
| 174 | if descending { |
| 175 | data.sort_by_cached_keyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/impl#[`[T]`]sort_by_cached_key().(|pd| Reverserust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Reverse#(pd.userrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#user..clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`][Clone]clone().())); |
| 176 | } else { |
| 177 | data.sort_by_cached_keyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/impl#[`[T]`]sort_by_cached_key().(|pd| pd.userrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#user..clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`][Clone]clone().()); |
| 178 | } |
| 179 | } |
| 180 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Timerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Time# => { |
| 181 | data.sort_byrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/impl#[`[T]`]sort_by().(|a, b| sort_partial_fnrust-analyzer cargo bottom 0.14.9 utils/general/sort_partial_fn().(descending)(a.timerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#time., b.timerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#time.)); |
| 182 | } |
| 183 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Priorityrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Priority# => { |
| 184 | data.sort_byrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/impl#[`[T]`]sort_by().(|a, b| sort_partial_fnrust-analyzer cargo bottom 0.14.9 utils/general/sort_partial_fn().(descending)(a.priorityrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#priority., b.priorityrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#priority.)); |
| 185 | } |
| 186 | #[cfg(unix)] |
| 187 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Nicerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Nice# => { |
| 188 | data.sort_byrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/impl#[`[T]`]sort_by().(|a, b| sort_partial_fnrust-analyzer cargo bottom 0.14.9 utils/general/sort_partial_fn().(descending)(a.nicerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#nice., b.nicerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#nice.)); |
| 189 | } |
| 190 | #[cfg(feature = "gpu")] |
| 191 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::GpuMemValuerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#GpuMemValue# | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::GpuMemPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#GpuMemPercent# => { |
| 192 | data.sort_byrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/impl#[`[T]`]sort_by().(|a, b| { |
| 193 | sort_partial_fnrust-analyzer cargo bottom 0.14.9 utils/general/sort_partial_fn().(descending)(&a.gpu_mem_usagerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#gpu_mem_usage., &b.gpu_mem_usagerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#gpu_mem_usage.) |
| 194 | }); |
| 195 | } |
| 196 | #[cfg(feature = "gpu")] |
| 197 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::GpuUtilPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#GpuUtilPercent# => { |
| 198 | data.sort_byrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/impl#[`[T]`]sort_by().(|a, b| sort_partial_fnrust-analyzer cargo bottom 0.14.9 utils/general/sort_partial_fn().(descending)(a.gpu_usagerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#gpu_usage., b.gpu_usagerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_data/ProcWidgetData#gpu_usage.)); |
| 199 | } |
| 200 | } |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | impl ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn# { |
| 205 | /// Parse a column name, case-insensitively, accepting any of the aliases |
| 206 | /// recognized in the config file. |
| 207 | pub fn parse_column_namerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/impl#[ProcColumn]parse_column_name().(name: &str) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Selfrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/impl#[ProcColumn]> { |
| 208 | match name.to_lowercaserust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str]to_lowercase().().as_strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]as_str().() { |
| 209 | "cpu%" => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::CpuPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#CpuPercent#), |
| 210 | "mem" | "mem%" | "memory" | "memory%" => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::MemPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#MemPercent#), |
| 211 | "virt" | "virtual" | "virtmem" | "virtual memory" => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::VirtualMemrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#VirtualMem#), |
| 212 | "pid" => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Pidrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Pid#), |
| 213 | "count" => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Countrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Count#), |
| 214 | "name" => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Namerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Name#), |
| 215 | "command" => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Commandrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Command#), |
| 216 | "read" | "r/s" | "rps" => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::ReadPerSecondrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#ReadPerSecond#), |
| 217 | "write" | "w/s" | "wps" => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::WritePerSecondrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#WritePerSecond#), |
| 218 | "tread" | "t.read" | "total read" => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::TotalReadrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#TotalRead#), |
| 219 | "twrite" | "t.write" | "total write" => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::TotalWriterust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#TotalWrite#), |
| 220 | "state" => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Staterust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#State#), |
| 221 | "user" => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Userrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#User#), |
| 222 | "time" => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Timerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Time#), |
| 223 | #[cfg(unix)] |
| 224 | "nice" => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Nicerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Nice#), |
| 225 | "priority" => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Priorityrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Priority#), |
| 226 | #[cfg(feature = "gpu")] |
| 227 | "gmem" | "gmem%" => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::GpuMemPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#GpuMemPercent#), |
| 228 | #[cfg(feature = "gpu")] |
| 229 | "gpu%" => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::GpuUtilPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#GpuUtilPercent#), |
| 230 | _ => Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, |
| 231 | } |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | impl<'de> Deserializerust-analyzer cargo serde_core 1.0.228 de/Deserialize#<'de> for ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn# { |
| 236 | fn deserializerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/impl#[ProcColumn][`Deserialize<'de>`]deserialize().<D>(deserializer: D) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Selfrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/impl#[ProcColumn][`Deserialize<'de>`], D::Errorrust-analyzer cargo serde_core 1.0.228 de/Deserializer#Error#> |
| 237 | where |
| 238 | D: serderust-analyzer cargo serde 1.0.228 crate/::Deserializerrust-analyzer cargo serde_core 1.0.228 de/Deserializer#<'de>, |
| 239 | { |
| 240 | let value = Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#::deserializerust-analyzer cargo serde_core 1.0.228 de/impls/impl#[String][`Deserialize<'de>`]deserialize().(deserializer)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().; |
| 241 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::parse_column_namerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/impl#[ProcColumn]parse_column_name().(&value) |
| 242 | .ok_or_elserust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]ok_or_else().(|| serderust-analyzer cargo serde 1.0.228 crate/::derust-analyzer cargo serde_core 1.0.228 de/::Errorrust-analyzer cargo serde_core 1.0.228 de/Error#::customrust-analyzer cargo serde_core 1.0.228 de/Error#custom().("doesn't match any process column name")) |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<&ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#> for ProcWidgetColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn# { |
| 247 | fn fromrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/impl#[ProcWidgetColumn][`From<&ProcColumn>`]from().(value: &ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#) -> Selfrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/impl#[ProcWidgetColumn][`From<&ProcColumn>`] { |
| 248 | match value { |
| 249 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Pidrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Pid# | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Countrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Count# => ProcWidgetColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#::PidOrCountrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#PidOrCount#, |
| 250 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Namerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Name# | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Commandrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Command# => ProcWidgetColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#::ProcNameOrCommandrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#ProcNameOrCommand#, |
| 251 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::CpuPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#CpuPercent# => ProcWidgetColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#::Cpurust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#Cpu#, |
| 252 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::MemPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#MemPercent# | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::MemValuerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#MemValue# => ProcWidgetColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#::Memrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#Mem#, |
| 253 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::VirtualMemrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#VirtualMem# => ProcWidgetColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#::VirtualMemrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#VirtualMem#, |
| 254 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::ReadPerSecondrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#ReadPerSecond# => ProcWidgetColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#::ReadPerSecondrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#ReadPerSecond#, |
| 255 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::WritePerSecondrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#WritePerSecond# => ProcWidgetColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#::WritePerSecondrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#WritePerSecond#, |
| 256 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::TotalReadrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#TotalRead# => ProcWidgetColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#::TotalReadrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#TotalRead#, |
| 257 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::TotalWriterust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#TotalWrite# => ProcWidgetColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#::TotalWriterust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#TotalWrite#, |
| 258 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Staterust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#State# => ProcWidgetColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#::Staterust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#State#, |
| 259 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Userrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#User# => ProcWidgetColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#::Userrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#User#, |
| 260 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Timerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Time# => ProcWidgetColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#::Timerust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#Time#, |
| 261 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Priorityrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Priority# => ProcWidgetColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#::Priorityrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#Priority#, |
| 262 | #[cfg(unix)] |
| 263 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::Nicerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#Nice# => ProcWidgetColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#::Nicerust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#Nice#, |
| 264 | #[cfg(feature = "gpu")] |
| 265 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::GpuMemPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#GpuMemPercent# | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::GpuMemValuerust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#GpuMemValue# => ProcWidgetColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#::GpuMemrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#GpuMem#, |
| 266 | #[cfg(feature = "gpu")] |
| 267 | ProcColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#::GpuUtilPercentrust-analyzer cargo bottom 0.14.9 widgets/process_table/process_columns/ProcColumn#GpuUtilPercent# => ProcWidgetColumnrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#::GpuUtilrust-analyzer cargo bottom 0.14.9 widgets/process_table/ProcWidgetColumn#GpuUtil#, |
| 268 | } |
| 269 | } |
| 270 | } |