pub struct StatusMessage {
pub available: &'static str,
pub cpu_usage: Option<f32>,
pub cpu_temp: Option<f32>,
pub memory_usage: Option<f32>,
pub network: HashMap<String, NetworkStatus>,
}Expand description
Message sent to the MQTT broker which later forwards it to Home Assistant
This contains the payload that Home Assistant uses to read the values.
Fields§
§available: &'static str§cpu_usage: Option<f32>CPU usage in %
cpu_temp: Option<f32>CPU temperature in °C
memory_usage: Option<f32>Memory usage in %
network: HashMap<String, NetworkStatus>Trait Implementations§
Source§impl Debug for StatusMessage
impl Debug for StatusMessage
Source§impl Default for StatusMessage
impl Default for StatusMessage
Source§fn default() -> StatusMessage
fn default() -> StatusMessage
Returns the “default value” for a type. Read more
Source§impl Display for StatusMessage
impl Display for StatusMessage
Auto Trait Implementations§
impl Freeze for StatusMessage
impl RefUnwindSafe for StatusMessage
impl Send for StatusMessage
impl Sync for StatusMessage
impl Unpin for StatusMessage
impl UnwindSafe for StatusMessage
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