Skip to main content

Module error

Module error 

Source
Expand description

Error types for encoding/decoding operations Error types for MQTT protocol encoding and decoding operations

This module defines the error hierarchy used throughout the codec crate:

  • HandshakeError: Errors during the initial MQTT connection handshake
  • ProtocolError: Higher-level protocol errors (decode, encode, timeout)
  • DecodeError: Specific errors that occur when parsing MQTT packets from bytes
  • EncodeError: Specific errors that occur when serializing MQTT packets to bytes
  • SendPacketError: Errors that occur when preparing a packet for transmission

Enumsยง

DecodeError
Errors that occur when decoding/parsing MQTT packets from a byte stream
EncodeError
Errors that occur when encoding/serializing MQTT packets to a byte stream
HandshakeError
Errors which can occur during mqtt connection handshake.
ProtocolError
Protocol level errors
SendPacketError
Errors that occur when sending MQTT packets