pub struct CapabilitySnapshot {Show 22 fields
pub per_process_io: CapabilityState,
pub per_process_threads: CapabilityState,
pub per_process_open_files: CapabilityState,
pub per_process_sockets: CapabilityState,
pub per_process_working_directory: CapabilityState,
pub per_core_cpu: CapabilityState,
pub cpu_breakdown: CapabilityState,
pub load_average: CapabilityState,
pub swap_activity: CapabilityState,
pub disk_io: CapabilityState,
pub disk_busy: CapabilityState,
pub filesystem_capacity: CapabilityState,
pub network_counters: CapabilityState,
pub network_link_speed: CapabilityState,
pub network_errors: CapabilityState,
pub temperatures: CapabilityState,
pub battery: CapabilityState,
pub linux_psi: CapabilityState,
pub cgroup_limits: CapabilityState,
pub kernel_threads: CapabilityState,
pub process_signals: CapabilityState,
pub renice: CapabilityState,
}Expand description
Every capability the UI branches on.
Fields§
§per_process_io: CapabilityStatePer-process read/write byte counters.
per_process_threads: CapabilityStatePer-process thread counts.
per_process_open_files: CapabilityStatePer-process open file descriptor counts.
per_process_sockets: CapabilityStatePer-process socket counts.
per_process_working_directory: CapabilityStatePer-process working directory.
per_core_cpu: CapabilityStatePer-logical-CPU utilization.
cpu_breakdown: CapabilityStateThe user/system/idle CPU time split.
load_average: CapabilityStateLoad averages.
swap_activity: CapabilityStateSwap-in and swap-out rates, as opposed to swap capacity.
disk_io: CapabilityStateBlock-device throughput counters.
disk_busy: CapabilityStateBlock-device busy percentage (§7.3).
filesystem_capacity: CapabilityStateFilesystem capacity.
network_counters: CapabilityStateInterface byte and packet counters.
network_link_speed: CapabilityStateNegotiated link speed, without which no utilization is shown (§7.4).
network_errors: CapabilityStateInterface error and drop counters.
temperatures: CapabilityStateTemperature sensors.
battery: CapabilityStateBattery.
linux_psi: CapabilityStateLinux /proc/pressure/*.
cgroup_limits: CapabilityStatecgroup limits, exposed separately from host totals (§9.2).
kernel_threads: CapabilityStateWhether kernel threads are distinguishable, so they can be hidden (§7.2).
process_signals: CapabilityStateWhether signals can be sent at all.
renice: CapabilityStateWhether renice is available (§6.2).
Implementations§
Source§impl CapabilitySnapshot
impl CapabilitySnapshot
Sourcepub fn entries(&self) -> [(&'static str, CapabilityState); 22]
pub fn entries(&self) -> [(&'static str, CapabilityState); 22]
Every capability paired with its display label, for the Inspect screen.
The order is stable so the panel does not reshuffle between frames.
Capabilities that are missing, with the reason, for the diagnostics subsection §7.5 requires.
Sourcepub fn any_permission_denied(&self) -> bool
pub fn any_permission_denied(&self) -> bool
Whether any capability is denied rather than merely absent, so the UI can show one privilege hint instead of one per metric.
Trait Implementations§
Source§impl Clone for CapabilitySnapshot
impl Clone for CapabilitySnapshot
Source§fn clone(&self) -> CapabilitySnapshot
fn clone(&self) -> CapabilitySnapshot
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more