Enum mqttbytes::Error[][src]

pub enum Error {
Show 23 variants NotConnect(PacketType), UnexpectedConnect, InvalidConnectReturnCode(u8), InvalidReason(u8), InvalidProtocol, InvalidProtocolLevel(u8), IncorrectPacketFormat, InvalidPacketType(u8), InvalidPropertyType(u8), InvalidRetainForwardRule(u8), InvalidQoS(u8), InvalidSubscribeReasonCode(u8), PacketIdZero, SubscriptionIdZero, PayloadSizeIncorrect, PayloadTooLong, PayloadSizeLimitExceeded(usize), PayloadRequired, TopicNotUtf8, BoundaryCrossed(usize), MalformedPacket, MalformedRemainingLength, InsufficientBytes(usize),
}
Expand description

Error during serialization and deserialization

Variants

NotConnect(PacketType)

Tuple Fields of NotConnect

0: PacketType
UnexpectedConnect
InvalidConnectReturnCode(u8)

Tuple Fields of InvalidConnectReturnCode

0: u8
InvalidReason(u8)

Tuple Fields of InvalidReason

0: u8
InvalidProtocol
InvalidProtocolLevel(u8)

Tuple Fields of InvalidProtocolLevel

0: u8
IncorrectPacketFormat
InvalidPacketType(u8)

Tuple Fields of InvalidPacketType

0: u8
InvalidPropertyType(u8)

Tuple Fields of InvalidPropertyType

0: u8
InvalidRetainForwardRule(u8)

Tuple Fields of InvalidRetainForwardRule

0: u8
InvalidQoS(u8)

Tuple Fields of InvalidQoS

0: u8
InvalidSubscribeReasonCode(u8)

Tuple Fields of InvalidSubscribeReasonCode

0: u8
PacketIdZero
SubscriptionIdZero
PayloadSizeIncorrect
PayloadTooLong
PayloadSizeLimitExceeded(usize)

Tuple Fields of PayloadSizeLimitExceeded

0: usize
PayloadRequired
TopicNotUtf8
BoundaryCrossed(usize)

Tuple Fields of BoundaryCrossed

0: usize
MalformedPacket
MalformedRemainingLength
InsufficientBytes(usize)

More bytes required to frame packet. Argument implies minimum additional bytes required to proceed further

Tuple Fields of InsufficientBytes

0: usize

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

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

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.