Enum ntex_mqtt::error::ProtocolError [−][src]
pub enum ProtocolError {
Decode(DecodeError),
Encode(EncodeError),
Unexpected(u8, &'static str),
PacketIdMismatch,
MaxTopicAlias,
ReceiveMaximumExceeded,
UnknownTopicAlias,
KeepAliveTimeout,
Io(Error),
}
Expand description
Protocol level errors
Variants
Decode(DecodeError)
Tuple Fields
0: DecodeError
Mqtt parse error
Encode(EncodeError)
Tuple Fields
0: EncodeError
Mqtt encode error
Unexpected(u8, &'static str)
Unexpected packet
PacketIdMismatch
Packet id of publish ack packet does not match of send publish packet
MaxTopicAlias
Topic alias is greater than max topic alias
ReceiveMaximumExceeded
Number of in-flight messages exceeded
UnknownTopicAlias
Unknown topic alias
KeepAliveTimeout
Keep alive timeout
Io(Error)
Tuple Fields
0: Error
Unexpected io error
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ProtocolError
impl Send for ProtocolError
impl Sync for ProtocolError
impl Unpin for ProtocolError
impl !UnwindSafe for ProtocolError
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more