Enum homie_controller::State
source · [−]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
Auto Trait Implementations
impl RefUnwindSafe for State
impl UnwindSafe for State
Blanket Implementations
Mutably borrows from an owned value. Read more