pub enum MessageConversionError<DE> {
PayloadDeserializationError(DE),
TopicParameterMissing {
param: String,
position: usize,
},
TopicParameterParseError {
param: String,
source: Box<dyn Error + Sync + Send>,
},
}
Expand description
Errors that occur during message conversion from MQTT topics.
Variants§
PayloadDeserializationError(DE)
Failed to deserialize message payload
TopicParameterMissing
Topic parameter expected but not found
TopicParameterParseError
Topic parameter found but couldn’t parse to target type
Trait Implementations§
Source§impl<DE> Debug for MessageConversionError<DE>where
DE: Debug,
impl<DE> Debug for MessageConversionError<DE>where
DE: Debug,
Source§impl<DE> Display for MessageConversionError<DE>where
DE: Display,
impl<DE> Display for MessageConversionError<DE>where
DE: Display,
Source§impl<DE> Error for MessageConversionError<DE>
impl<DE> Error for MessageConversionError<DE>
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()
Auto Trait Implementations§
impl<DE> Freeze for MessageConversionError<DE>where
DE: Freeze,
impl<DE> !RefUnwindSafe for MessageConversionError<DE>
impl<DE> Send for MessageConversionError<DE>where
DE: Send,
impl<DE> Sync for MessageConversionError<DE>where
DE: Sync,
impl<DE> Unpin for MessageConversionError<DE>where
DE: Unpin,
impl<DE> !UnwindSafe for MessageConversionError<DE>
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