pub struct DeviceComponent { /* private fields */ }Implementations§
Source§impl DeviceComponent
impl DeviceComponent
pub fn new(sensor: Sensor, entity: &str) -> DeviceComponent
pub fn cpu_temperature(entity: &str) -> DeviceComponent
pub fn cpu_usage(entity: &str) -> DeviceComponent
pub fn net_rx(entity: &str) -> DeviceComponent
pub fn net_tx(entity: &str) -> DeviceComponent
Trait Implementations§
Source§impl Debug for DeviceComponent
impl Debug for DeviceComponent
Auto Trait Implementations§
impl Freeze for DeviceComponent
impl RefUnwindSafe for DeviceComponent
impl Send for DeviceComponent
impl Sync for DeviceComponent
impl Unpin for DeviceComponent
impl UnwindSafe for DeviceComponent
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