pub struct Temp { /* private fields */ }
Expand description
Displays the temperature of a provided thermal zone.
The thermal zone meanings are listed in
/sys/class/thermal/thermal_zone*/type
.
Trait Implementations§
Source§impl PanelConfig for Temp
impl PanelConfig for Temp
Source§fn parse(
name: &'static str,
table: &mut HashMap<String, Value>,
_global: &Config,
) -> Result<Self>
fn parse( name: &'static str, table: &mut HashMap<String, Value>, _global: &Config, ) -> Result<Self>
Parses an instance of the panel from the global [Config
]
Configuration options:
format
: the format string- type: String
- default:
TEMP: %temp%
- formatting options:
%temp%
interval
: how long to wait in seconds between each check- type: u64
- default: 10
zone
: the thermal zone to check- type: u64
- default: 0
attrs
: A string specifying the attrs for the panel. SeeAttrs::parse
for details.highlight
: A string specifying the highlight for the panel. SeeHighlight::parse
for details.ramp
: A string specifying the ramp to show internal temperature. SeeRamp::parse
for details.- See
PanelCommon::parse_common
.
Source§fn props(&self) -> (&'static str, bool)
fn props(&self) -> (&'static str, bool)
Returns the name of the panel. If the panel supports events, each
instance must return a unique name.
Source§fn run<'async_trait>(
self: Box<Self>,
cr: Rc<Context>,
global_attrs: Attrs,
height: i32,
) -> Pin<Box<dyn Future<Output = PanelRunResult> + 'async_trait>>where
Self: 'async_trait,
fn run<'async_trait>(
self: Box<Self>,
cr: Rc<Context>,
global_attrs: Attrs,
height: i32,
) -> Pin<Box<dyn Future<Output = PanelRunResult> + 'async_trait>>where
Self: 'async_trait,
Performs any necessary setup, then returns a
PanelStream
representing the provided PanelConfig
. Read moreAuto Trait Implementations§
impl Freeze for Temp
impl !RefUnwindSafe for Temp
impl !Send for Temp
impl !Sync for Temp
impl Unpin for Temp
impl !UnwindSafe for Temp
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