#[non_exhaustive]pub enum SetError {
NotConnected,
UnknownDevice,
UnknownProperty,
NotSettable,
DeviceNotReady(DeviceState),
Invalid(Problem),
InvalidTopic,
}Available on crate feature
alloc only.Expand description
Why a /set or $broadcast was not sent.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotConnected
The broker link is down; QoS 0 is never held (convention.md:695).
UnknownDevice
No device with that id is known.
UnknownProperty
The device has no model, or declares no such property.
NotSettable
The property is not settable.
DeviceNotReady(DeviceState)
The device’s effective state is not ready (convention.md:279).
Invalid(Problem)
The payload fails the check the device runs.
InvalidTopic
A $broadcast subtopic level is not a valid id, or the domain is
Domain::Any.
Implementations§
Trait Implementations§
impl Copy for SetError
impl Eq for SetError
Source§impl Error for SetError
impl Error for SetError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for SetError
Auto Trait Implementations§
impl Freeze for SetError
impl RefUnwindSafe for SetError
impl Send for SetError
impl Sync for SetError
impl Unpin for SetError
impl UnsafeUnpin for SetError
impl UnwindSafe for SetError
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