pub struct Temperatures { /* private fields */ }Expand description
Displays the average temperature read by the device sensors
Implementations§
Source§impl Temperatures
impl Temperatures
Sourcepub async fn new(format: impl ToString, config: &WidgetConfig) -> Box<Self>
pub async fn new(format: impl ToString, config: &WidgetConfig) -> Box<Self>
format%twill be replaced with the temperature in celsius
configa [&WidgetConfig]
Trait Implementations§
Source§impl Debug for Temperatures
impl Debug for Temperatures
Source§impl Display for Temperatures
impl Display for Temperatures
Source§impl Widget for Temperatures
impl Widget for Temperatures
fn update<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn hook<'life0, 'life1, 'async_trait>(
&'life0 mut self,
sender: HookSender,
pool: &'life1 mut TimedHooks,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn draw(&self, context: &Context, rectangle: &Rectangle) -> Result<()>
fn size(&self, context: &Context) -> Result<Size>
fn padding(&self) -> u32
fn setup(&mut self, _info: &StatusBarInfo) -> Result<()>
Auto Trait Implementations§
impl Freeze for Temperatures
impl RefUnwindSafe for Temperatures
impl Send for Temperatures
impl Sync for Temperatures
impl Unpin for Temperatures
impl UnwindSafe for Temperatures
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