[][src]Enum ntex_mqtt::error::MqttError

pub enum MqttError<E> {
    Service(E),
    Decode(DecodeError),
    Encode(EncodeError),
    Unexpected(u8, &'static str),
    PacketIdRequired,
    DuplicatedPacketId,
    KeepAliveTimeout,
    HandshakeTimeout,
    Disconnected,
    Io(Error),
}

Errors which can occur when attempting to handle mqtt connection.

Variants

Service(E)

Message handler service error

Decode(DecodeError)

Mqtt parse error

Encode(EncodeError)

Mqtt encode error

Unexpected(u8, &'static str)

Unexpected packet

PacketIdRequired

"SUBSCRIBE, UNSUBSCRIBE, and PUBLISH (in cases where QoS > 0) Control Packets MUST contain a non-zero 16-bit Packet Identifier [MQTT-2.3.1-1]."

DuplicatedPacketId

Multiple in-flight publish packet with same package_id

KeepAliveTimeout

Keep alive timeout

HandshakeTimeout

Handshake timeout

Disconnected

Peer disconnect

Io(Error)

Unexpected io error

Trait Implementations

impl<E: Debug> Debug for MqttError<E>[src]

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

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

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

Auto Trait Implementations

impl<E> !RefUnwindSafe for MqttError<E>

impl<E> Send for MqttError<E> where
    E: Send

impl<E> Sync for MqttError<E> where
    E: Sync

impl<E> Unpin for MqttError<E> where
    E: Unpin

impl<E> !UnwindSafe for MqttError<E>

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, 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> Sealed<T> for T where
    T: ?Sized

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>,