pub enum State {
Unknown,
Init,
Ready,
Disconnected,
Sleeping,
Lost,
Alert,
}
Expand description
The state of a Homie device according to the Homie device lifecycle.
Variants§
Unknown
The state of the device is not yet known to the controller because device discovery is still underway.
Init
The device is connected to the MQTT broker but is not yet ready to operate.
Ready
The device is connected and operational.
Disconnected
The device has cleanly disconnected from the MQTT broker.
Sleeping
The device is currently sleeping.
Lost
The device was uncleanly disconnected from the MQTT broker. This could happen due to a network issue, power failure or some other unexpected failure.
Alert
The device is connected to the MQTT broker but something is wrong and it may require human intervention.
Trait Implementations§
impl Copy for State
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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