Enum mqtt::packet::PacketError[][src]

pub enum PacketError<T: Packet> {
    FixedHeaderError(FixedHeaderError),
    VariableHeaderError(VariableHeaderError),
    PayloadError(<<T as Packet>::Payload as Encodable>::Err),
    MalformedPacket(String),
    StringEncodeError(StringEncodeError),
    IoError(Error),
    TopicNameError(TopicNameError),
}

Parsing errors for packet

Variants

Trait Implementations

impl<T: Debug + Packet> Debug for PacketError<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Packet> Display for PacketError<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Packet + Debug> Error for PacketError<T>
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl<T: Packet> From<FixedHeaderError> for PacketError<T>
[src]

Performs the conversion.

impl<T: Packet> From<VariableHeaderError> for PacketError<T>
[src]

Performs the conversion.

impl<T: Packet> From<Error> for PacketError<T>
[src]

Performs the conversion.

impl<T: Packet> From<StringEncodeError> for PacketError<T>
[src]

Performs the conversion.

impl<T: Packet> From<TopicNameError> for PacketError<T>
[src]

Performs the conversion.

impl From<PacketError<ConnectPacket>> for VariablePacketError
[src]

Performs the conversion.

impl From<PacketError<ConnackPacket>> for VariablePacketError
[src]

Performs the conversion.

impl From<PacketError<PublishPacket>> for VariablePacketError
[src]

Performs the conversion.

impl From<PacketError<PubackPacket>> for VariablePacketError
[src]

Performs the conversion.

impl From<PacketError<PubrecPacket>> for VariablePacketError
[src]

Performs the conversion.

impl From<PacketError<PubrelPacket>> for VariablePacketError
[src]

Performs the conversion.

impl From<PacketError<PubcompPacket>> for VariablePacketError
[src]

Performs the conversion.

impl From<PacketError<PingreqPacket>> for VariablePacketError
[src]

Performs the conversion.

impl From<PacketError<PingrespPacket>> for VariablePacketError
[src]

Performs the conversion.

impl From<PacketError<SubscribePacket>> for VariablePacketError
[src]

Performs the conversion.

impl From<PacketError<SubackPacket>> for VariablePacketError
[src]

Performs the conversion.

impl From<PacketError<UnsubscribePacket>> for VariablePacketError
[src]

Performs the conversion.

impl From<PacketError<UnsubackPacket>> for VariablePacketError
[src]

Performs the conversion.

impl From<PacketError<DisconnectPacket>> for VariablePacketError
[src]

Performs the conversion.

Auto Trait Implementations

impl<T> Send for PacketError<T> where
    <<T as Packet>::Payload as Encodable>::Err: Send

impl<T> Sync for PacketError<T> where
    <<T as Packet>::Payload as Encodable>::Err: Sync