Enum mqtt::packet::VariablePacketError[][src]

pub enum VariablePacketError {
Show 17 variants FixedHeaderError(FixedHeaderError), ReservedPacket(u8Vec<u8>), IoError(Error), ConnectPacketError(PacketError<ConnectPacket>), ConnackPacketError(PacketError<ConnackPacket>), PublishPacketError(PacketError<PublishPacket>), PubackPacketError(PacketError<PubackPacket>), PubrecPacketError(PacketError<PubrecPacket>), PubrelPacketError(PacketError<PubrelPacket>), PubcompPacketError(PacketError<PubcompPacket>), PingreqPacketError(PacketError<PingreqPacket>), PingrespPacketError(PacketError<PingrespPacket>), SubscribePacketError(PacketError<SubscribePacket>), SubackPacketError(PacketError<SubackPacket>), UnsubscribePacketError(PacketError<UnsubscribePacket>), UnsubackPacketError(PacketError<UnsubackPacket>), DisconnectPacketError(PacketError<DisconnectPacket>),
}
Expand description

Parsing errors for variable packet

Variants

FixedHeaderError(FixedHeaderError)

Tuple Fields of FixedHeaderError

0: FixedHeaderError
ReservedPacket(u8Vec<u8>)

Tuple Fields of ReservedPacket

0: u81: Vec<u8>
IoError(Error)

Tuple Fields of IoError

0: Error
ConnectPacketError(PacketError<ConnectPacket>)

Tuple Fields of ConnectPacketError

0: PacketError<ConnectPacket>
ConnackPacketError(PacketError<ConnackPacket>)

Tuple Fields of ConnackPacketError

0: PacketError<ConnackPacket>
PublishPacketError(PacketError<PublishPacket>)

Tuple Fields of PublishPacketError

0: PacketError<PublishPacket>
PubackPacketError(PacketError<PubackPacket>)

Tuple Fields of PubackPacketError

0: PacketError<PubackPacket>
PubrecPacketError(PacketError<PubrecPacket>)

Tuple Fields of PubrecPacketError

0: PacketError<PubrecPacket>
PubrelPacketError(PacketError<PubrelPacket>)

Tuple Fields of PubrelPacketError

0: PacketError<PubrelPacket>
PubcompPacketError(PacketError<PubcompPacket>)

Tuple Fields of PubcompPacketError

0: PacketError<PubcompPacket>
PingreqPacketError(PacketError<PingreqPacket>)

Tuple Fields of PingreqPacketError

0: PacketError<PingreqPacket>
PingrespPacketError(PacketError<PingrespPacket>)

Tuple Fields of PingrespPacketError

0: PacketError<PingrespPacket>
SubscribePacketError(PacketError<SubscribePacket>)

Tuple Fields of SubscribePacketError

0: PacketError<SubscribePacket>
SubackPacketError(PacketError<SubackPacket>)

Tuple Fields of SubackPacketError

0: PacketError<SubackPacket>
UnsubscribePacketError(PacketError<UnsubscribePacket>)

Tuple Fields of UnsubscribePacketError

0: PacketError<UnsubscribePacket>
UnsubackPacketError(PacketError<UnsubackPacket>)

Tuple Fields of UnsubackPacketError

0: PacketError<UnsubackPacket>
DisconnectPacketError(PacketError<DisconnectPacket>)

Tuple Fields of DisconnectPacketError

0: PacketError<DisconnectPacket>

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.