pub struct PanelConfigs {
pub cpu: PanelConfig,
pub memory: PanelConfig,
pub disk: PanelConfig,
pub network: PanelConfig,
pub process: ProcessPanelConfig,
pub gpu: PanelConfig,
pub battery: PanelConfig,
pub sensors: PanelConfig,
pub psi: PanelConfig,
pub connections: PanelConfig,
pub files: PanelConfig,
}Expand description
Panel configurations.
Fields§
§cpu: PanelConfigCPU panel configuration.
memory: PanelConfigMemory panel configuration.
disk: PanelConfigDisk panel configuration.
network: PanelConfigNetwork panel configuration.
process: ProcessPanelConfigProcess panel configuration.
gpu: PanelConfigGPU panel configuration.
battery: PanelConfigBattery panel configuration.
sensors: PanelConfigSensors panel configuration.
psi: PanelConfigPSI panel configuration.
connections: PanelConfigConnections panel configuration.
files: PanelConfigFiles panel configuration.
Implementations§
Source§impl PanelConfigs
impl PanelConfigs
Sourcepub fn iter_enabled(&self) -> Vec<(PanelType, bool)>
pub fn iter_enabled(&self) -> Vec<(PanelType, bool)>
Iterate over all panels with their enabled status.
Sourcepub fn set_enabled(&mut self, panel: PanelType, enabled: bool)
pub fn set_enabled(&mut self, panel: PanelType, enabled: bool)
Set enabled status for a panel.
Trait Implementations§
Source§impl Clone for PanelConfigs
impl Clone for PanelConfigs
Source§fn clone(&self) -> PanelConfigs
fn clone(&self) -> PanelConfigs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PanelConfigs
impl Debug for PanelConfigs
Source§impl Default for PanelConfigs
impl Default for PanelConfigs
Source§fn default() -> PanelConfigs
fn default() -> PanelConfigs
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PanelConfigs
impl<'de> Deserialize<'de> for PanelConfigs
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PanelConfigs
impl RefUnwindSafe for PanelConfigs
impl Send for PanelConfigs
impl Sync for PanelConfigs
impl Unpin for PanelConfigs
impl UnsafeUnpin for PanelConfigs
impl UnwindSafe for PanelConfigs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more