[][src]Enum ntex_mqtt::error::ProtocolError

pub enum ProtocolError {
    Decode(DecodeError),
    Encode(EncodeError),
    Unexpected(u8, &'static str),
    PacketIdMismatch,
    MaxTopicAlias,
    ReceiveMaximumExceeded,
    UnknownTopicAlias,
    KeepAliveTimeout,
    Io(Error),
}

Protocol level errors

Variants

Decode(DecodeError)

Mqtt parse error

Encode(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)

Unexpected io error

Trait Implementations

impl Debug for ProtocolError[src]

impl Display for ProtocolError[src]

impl From<(u8, &'static str)> for ProtocolError[src]

impl From<DecodeError> for ProtocolError[src]

impl From<Either<DecodeError, Error>> for ProtocolError[src]

impl From<EncodeError> for ProtocolError[src]

impl From<Error> for ProtocolError[src]

impl<E> From<ProtocolError> for MqttError<E>[src]

impl From<ProtocolError> for ClientError[src]

impl From<ProtocolError> for ClientError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,