pub enum ErrorV5 {
Common(Error),
InvalidReasonCode(PacketType, u8),
InvalidSubscriptionOption(u8),
InvalidPayloadFormat,
InvalidResponseTopic,
InvalidPropertyId(u8),
InvalidPropertyLength(u32),
InvalidByteProperty(PropertyId, u8),
DuplicatedProperty(PropertyId),
InvalidProperty(PacketType, PropertyId),
InvalidWillProperty(PropertyId),
}
Expand description
MQTT v5.0 errors returned by encoding and decoding process.
Variants§
Common(Error)
Common error of MQTT v3 and v5.
InvalidReasonCode(PacketType, u8)
Invalid reason code.
InvalidSubscriptionOption(u8)
Invalid subscription option.
InvalidPayloadFormat
Invalid payload format, utf8 expected
InvalidResponseTopic
Invalid response topic name
InvalidPropertyId(u8)
Invalid property identifier.
InvalidPropertyLength(u32)
Invalid property length.
InvalidByteProperty(PropertyId, u8)
Invalid byte property value.
DuplicatedProperty(PropertyId)
Duplicated property.
InvalidProperty(PacketType, PropertyId)
Invalid property.
InvalidWillProperty(PropertyId)
Invalid will property (connect packet).
Implementations§
Trait Implementations§
Source§impl Error for ErrorV5
impl Error for ErrorV5
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 Eq for ErrorV5
impl StructuralPartialEq for ErrorV5
Auto Trait Implementations§
impl Freeze for ErrorV5
impl RefUnwindSafe for ErrorV5
impl Send for ErrorV5
impl Sync for ErrorV5
impl Unpin for ErrorV5
impl UnwindSafe for ErrorV5
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