pub struct DeviceComponent { /* private fields */ }Expand description
Configured device component
Implementations§
Source§impl DeviceComponent
impl DeviceComponent
Sourcepub fn new(sensor: Sensor, entity: &str) -> DeviceComponent
pub fn new(sensor: Sensor, entity: &str) -> DeviceComponent
Creates a new device component from a sensor type
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