pub enum MetaExtError {
InvalidMetaData(Error),
InvalidTopic,
PayloadConversionError(FromUtf8Error),
InvalidPayload,
InvalidHomieDomain(InvalidHomieDomainError),
InvalidHomieID(InvalidHomieIDError),
}
Variants§
InvalidMetaData(Error)
InvalidTopic
An MQTT message was received for a topic that does not conform to the Homie convention.
PayloadConversionError(FromUtf8Error)
Error occurred while converting a payload from bytes to UTF-8.
This typically happens when the payload contains invalid UTF-8 bytes.
InvalidPayload
An invalid message payload was received.
InvalidHomieDomain(InvalidHomieDomainError)
The data provided does not confirm to the homie specification for a homie-domain
InvalidHomieID(InvalidHomieIDError)
The data provided does not confirm to the homie specification for a homie id
Trait Implementations§
Source§impl Debug for MetaExtError
impl Debug for MetaExtError
Source§impl Display for MetaExtError
impl Display for MetaExtError
Source§impl Error for MetaExtError
impl Error for MetaExtError
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()
Source§impl From<Error> for MetaExtError
impl From<Error> for MetaExtError
Source§impl From<FromUtf8Error> for MetaExtError
impl From<FromUtf8Error> for MetaExtError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<InvalidHomieDomainError> for MetaExtError
impl From<InvalidHomieDomainError> for MetaExtError
Source§fn from(source: InvalidHomieDomainError) -> Self
fn from(source: InvalidHomieDomainError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidHomieIDError> for MetaExtError
impl From<InvalidHomieIDError> for MetaExtError
Source§fn from(source: InvalidHomieIDError) -> Self
fn from(source: InvalidHomieIDError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MetaExtError
impl !RefUnwindSafe for MetaExtError
impl Send for MetaExtError
impl Sync for MetaExtError
impl Unpin for MetaExtError
impl !UnwindSafe for MetaExtError
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